- Timestamp:
- May 17, 2006, 11:43:19 AM (19 years ago)
- Location:
- branches/qt_gui/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/defs/globals.h
r7636 r7639 81 81 82 82 #define CONFIG_NAME_PLAYER_FIRE "Fire" 83 #define CONFIG_NAME_PLAYER_NEXT_WEAPON "Next "84 #define CONFIG_NAME_PLAYER_PREV_WEAPON "Prev "85 #define CONFIG_NAME_PLAYER_CHANGE_SHIP "Change _Ship"83 #define CONFIG_NAME_PLAYER_NEXT_WEAPON "Next-Weapon" 84 #define CONFIG_NAME_PLAYER_PREV_WEAPON "Previous-Weapon" 85 #define CONFIG_NAME_PLAYER_CHANGE_SHIP "Change-Ship" 86 86 87 87 #define CONFIG_NAME_QUIT "Quit" -
branches/qt_gui/src/lib/gui/qt_gui/gui_video.cc
r7633 r7639 53 53 { 54 54 QComboBox* resolution = new QtGuiComboBox(CONFIG_NAME_RESOLUTION, this, "640x480"); 55 resolution->setEditable(true); 55 56 layout->addWidget(resolution, 2, 0); 56 57 std::vector<QString> resolutions; -
branches/qt_gui/src/lib/gui/qt_gui/qt_gui_elements.cc
r7632 r7639 87 87 { 88 88 Saveable::load(); 89 this->setCurrentIndex(this->findText(QString().fromStdString(this->value().getString()))); 89 int index = this->findText(QString().fromStdString(this->value().getString())); 90 if (index == -1) 91 index = 1; 92 this->setCurrentIndex(index); 90 93 } 91 94
Note: See TracChangeset
for help on using the changeset viewer.