Show
Ignore:
Timestamp:
09/28/07 21:38:59 (14 months ago)
Author:
eugene
Message:

Made default amount of messages per history page configurable in range of (2..200), ticket 821.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/qt-gui_qt4/src/optionsdlg.cpp

    r5421 r5446  
    207207  chkHistReverse->setChecked(mainwin->m_histReverse); 
    208208  cmbHistDateFormat->lineEdit()->setText(mainwin->m_histDateFormat); 
     209  spnHistMsgNum->setValue(mainwin->m_histMsgNum); 
    209210  btnColorRcv->setColor(mainwin->m_colorRcv); 
    210211  btnColorSnt->setColor(mainwin->m_colorSnt); 
     
    497498  mainwin->m_chatMsgStyle = cmbChatStyle->currentIndex(); 
    498499  mainwin->m_chatDateFormat = cmbChatDateFormat->currentText(); 
     500  mainwin->m_histMsgNum = spnHistMsgNum->value(); 
    499501  mainwin->m_histMsgStyle = cmbHistStyle->currentIndex(); 
    500502  mainwin->m_histVertSpacing = chkHistVertSpacing->isChecked(); 
     
    11191121  layHistDisp->addLayout(layHistDateFormat); 
    11201122 
     1123  QHBoxLayout *layHistMsgNum = new QHBoxLayout(); 
     1124  lblHistMsgNum = new QLabel(tr("Entries per page:")); 
     1125  layHistMsgNum->addWidget(lblHistMsgNum); 
     1126  spnHistMsgNum = new QSpinBox(); 
     1127  spnHistMsgNum->setRange(2, 200); 
     1128  layHistMsgNum->addWidget(spnHistMsgNum); 
     1129  layHistDisp->addLayout(layHistMsgNum); 
     1130 
    11211131  QHBoxLayout *layHistOpts = new QHBoxLayout(); 
    11221132  chkHistVertSpacing = new QCheckBox(tr("Insert vertical spacing"));