Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7639 in orxonox.OLD for branches/qt_gui/src


Ignore:
Timestamp:
May 17, 2006, 11:43:19 AM (18 years ago)
Author:
bensch
Message:

qt_gui: better gui and stuff

Location:
branches/qt_gui/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/qt_gui/src/defs/globals.h

    r7636 r7639  
    8181
    8282#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"
    8686
    8787#define   CONFIG_NAME_QUIT                 "Quit"
  • branches/qt_gui/src/lib/gui/qt_gui/gui_video.cc

    r7633 r7639  
    5353      {
    5454        QComboBox* resolution = new QtGuiComboBox(CONFIG_NAME_RESOLUTION, this, "640x480");
     55        resolution->setEditable(true);
    5556        layout->addWidget(resolution, 2, 0);
    5657        std::vector<QString> resolutions;
  • branches/qt_gui/src/lib/gui/qt_gui/qt_gui_elements.cc

    r7632 r7639  
    8787  {
    8888    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);
    9093  }
    9194
Note: See TracChangeset for help on using the changeset viewer.