Changeset 57 in tspsg-svn for trunk/src/settingsdialog.cpp


Ignore:
Timestamp:
Aug 23, 2009, 1:26:42 AM (15 years ago)
Author:
laleppa
Message:

+ Created installation (INSTALLS and DEPLOYMENT) entries for *nix, windows and wince platforms in tspsg.pro file. Now qmake generates install rules in Makefile.
+ Automatic resize of columns after their content changes can be turned on/off in settings now.

  • Different search path for translations on different platforms.
  • Updated translations.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/settingsdialog.cpp

    r56 r57  
    4444        spacer = new QSpacerItem(0,0,QSizePolicy::Minimum,QSizePolicy::Expanding);
    4545        vbox2->addItem(spacer);
     46        vbox2->addWidget(cbAutosize);
    4647
    4748        // Output settings group
     
    9293        labelHint->setObjectName("labelHint");
    9394        labelHint->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Preferred);
    94         labelHint->setMinimumSize(QSize(175,28));
     95        labelHint->setMinimumSize(QSize(190,28));
    9596        labelHint->setMaximumSize(QSize(0xFFFFFF,28));
    9697        labelHint->setTextFormat(Qt::PlainText);
     
    130131        vbox2->addItem(spacer);
    131132        vbox2->addLayout(hbox2);
     133        vbox2->addWidget(cbAutosize);
    132134        vbox2->addWidget(cbSaveState);
    133135        spacer = new QSpacerItem(0,0,QSizePolicy::Minimum,QSizePolicy::Expanding);
     
    164166#endif // Q_OS_WINCE
    165167        settings = new QSettings(QSettings::IniFormat,QSettings::UserScope,"TSPSG","tspsg");
     168        spinRandMin->setMaximum(MAX_RAND_VALUE);
    166169        spinRandMin->setValue(settings->value("MinCost",DEF_RAND_MIN).toInt());
     170        spinRandMax->setMaximum(MAX_RAND_VALUE);
    167171        spinRandMax->setValue(settings->value("MaxCost",DEF_RAND_MAX).toInt());
     172        cbAutosize->setChecked(settings->value("Autosize",true).toBool());
    168173#ifndef Q_OS_WINCE
    169174        cbSaveState->setChecked(settings->value("SavePos",false).toBool());
     
    180185        settings->setValue("SavePos",cbSaveState->isChecked());
    181186#endif // Q_OS_WINCE
     187        settings->setValue("Autosize",cbAutosize->isChecked());
    182188        settings->setValue("MinCost",spinRandMin->value());
    183189        settings->setValue("MaxCost",spinRandMax->value());
Note: See TracChangeset for help on using the changeset viewer.