Feature #1495 ยป 0086-Qt-Cleanup-races_dialog-slots-parameters.patch
client/gui-qt/dialogs.cpp | ||
---|---|---|
/***********************************************************************//**
|
||
Selected group of nation
|
||
***************************************************************************/
|
||
void races_dialog::group_selected(const QItemSelection &sl,
|
||
const QItemSelection &ds)
|
||
void races_dialog::group_selected(const QItemSelection &selected)
|
||
{
|
||
QModelIndexList indexes = sl.indexes();
|
||
QModelIndexList indexes = selected.indexes();
|
||
QModelIndex index ;
|
||
if (indexes.isEmpty()) {
|
||
return;
|
||
}
|
||
index = indexes.at(0);
|
||
set_index(index.row());
|
||
}
|
||
... | ... | |
/***********************************************************************//**
|
||
Sets selected nation and updates style and leaders selector
|
||
***************************************************************************/
|
||
void races_dialog::nation_selected(const QItemSelection &selected,
|
||
const QItemSelection &deselcted)
|
||
void races_dialog::nation_selected(const QItemSelection &selected)
|
||
{
|
||
char buf[4096];
|
||
QModelIndex index ;
|
||
... | ... | |
/***********************************************************************//**
|
||
Sets selected style
|
||
***************************************************************************/
|
||
void races_dialog::style_selected(const QItemSelection &selected,
|
||
const QItemSelection &deselcted)
|
||
void races_dialog::style_selected(const QItemSelection &selected)
|
||
{
|
||
QModelIndex index ;
|
||
QVariant qvar;
|
client/gui-qt/dialogs.h | ||
---|---|---|
private slots:
|
||
void set_index(int index);
|
||
void nation_selected(const QItemSelection &sl, const QItemSelection &ds);
|
||
void style_selected(const QItemSelection &sl, const QItemSelection &ds);
|
||
void group_selected(const QItemSelection &sl, const QItemSelection &ds);
|
||
void nation_selected(const QItemSelection &selected);
|
||
void style_selected(const QItemSelection &selected);
|
||
void group_selected(const QItemSelection &selected);
|
||
void nationset_changed(int index);
|
||
void leader_selected(int index);
|
||
void ok_pressed();
|