default selection of serverlist
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle" >
|
<property name="windowTitle" >
|
||||||
<string>Internet-Game Serverlist</string>
|
<string>Server List</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout" >
|
<layout class="QGridLayout" name="gridLayout" >
|
||||||
<item row="0" column="0" >
|
<item row="0" column="0" >
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<column>
|
<column>
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Servername</string>
|
<string>Server Name</string>
|
||||||
</property>
|
</property>
|
||||||
</column>
|
</column>
|
||||||
<column>
|
<column>
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ void serverListDialogImpl::addServerItem(unsigned serverId)
|
|||||||
item->setData(1, Qt::DisplayRole, QString::fromUtf8(info.country.c_str()));
|
item->setData(1, Qt::DisplayRole, QString::fromUtf8(info.country.c_str()));
|
||||||
|
|
||||||
treeWidget_serverList->resizeColumnToContents(0);
|
treeWidget_serverList->resizeColumnToContents(0);
|
||||||
|
treeWidget_serverList->setCurrentItem(treeWidget_serverList->topLevelItem(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
void serverListDialogImpl::connectToServer()
|
void serverListDialogImpl::connectToServer()
|
||||||
|
|||||||
Reference in New Issue
Block a user