|
|
|
@ -101,11 +101,11 @@ private:
|
|
|
|
|
/** Attributes to store the variables so they can be undone when
|
|
|
|
|
* cancelling the apply.
|
|
|
|
|
**/
|
|
|
|
|
QColor m_qcolorTempList;
|
|
|
|
|
QColor m_qcolorTempListBG;
|
|
|
|
|
TQColor m_qcolorTempList;
|
|
|
|
|
TQColor m_qcolorTempListBG;
|
|
|
|
|
QFont m_qfontTempHeader;
|
|
|
|
|
QFont m_qfontTempCell;
|
|
|
|
|
QString m_qstringTempRowCount;
|
|
|
|
|
TQString m_qstringTempRowCount;
|
|
|
|
|
bool m_bTempShowGrid;
|
|
|
|
|
bool m_bTempColourPerTransaction;
|
|
|
|
|
bool m_bTempStartPrompt;
|
|
|
|
@ -129,7 +129,7 @@ public:
|
|
|
|
|
/**
|
|
|
|
|
* Standard constructor.
|
|
|
|
|
*
|
|
|
|
|
* @param parent The QWidget this is used in.
|
|
|
|
|
* @param parent The TQWidget this is used in.
|
|
|
|
|
* @param name The QT name.
|
|
|
|
|
* @param modal True if we want the dialog to be application modal.
|
|
|
|
|
*
|
|
|
|
@ -137,7 +137,7 @@ public:
|
|
|
|
|
*
|
|
|
|
|
* @see ~KSettingsDlg
|
|
|
|
|
**/
|
|
|
|
|
KSettingsDlg(QWidget *parent=0, const char *name=0, bool modal=true);
|
|
|
|
|
KSettingsDlg(TQWidget *parent=0, const char *name=0, bool modal=true);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Standard destructor.
|
|
|
|
@ -213,7 +213,7 @@ signals:
|
|
|
|
|
* KDialogBase
|
|
|
|
|
* to set the buttons to be showed and the type of dialog to be shown.
|
|
|
|
|
**/
|
|
|
|
|
KSettingsDlg::KSettingsDlg(QWidget *parent, const char *name, bool modal)
|
|
|
|
|
KSettingsDlg::KSettingsDlg(TQWidget *parent, const char *name, bool modal)
|
|
|
|
|
: KDialogBase(IconList, i18n("Configure"), Ok|Cancel|Apply|User1, Ok, parent,
|
|
|
|
|
name, modal, true, i18n("&Reset"))
|
|
|
|
|
{
|
|
|
|
@ -274,7 +274,7 @@ void KSettingsDlg::setPageList()
|
|
|
|
|
QTabWidget *qtabwidget = new QTabWidget(qvboxMainFrame, "TabWidget2");
|
|
|
|
|
|
|
|
|
|
// Create the first page
|
|
|
|
|
QWidget *qwidgetPage = new QWidget(this);
|
|
|
|
|
TQWidget *qwidgetPage = new TQWidget(this);
|
|
|
|
|
|
|
|
|
|
// Create the layout for the page
|
|
|
|
|
QVBoxLayout *qvboxlayoutPage = new QVBoxLayout(qwidgetPage);
|
|
|
|
@ -338,7 +338,7 @@ void KSettingsDlg::setPageList()
|
|
|
|
|
qtabwidget->insertTab(qwidgetPage, i18n("General"));
|
|
|
|
|
|
|
|
|
|
// Create a new tab for the colour options
|
|
|
|
|
QWidget *qwidgetColour = new QWidget(qtabwidget, "tab");
|
|
|
|
|
TQWidget *qwidgetColour = new TQWidget(qtabwidget, "tab");
|
|
|
|
|
|
|
|
|
|
// Create a vertical layout
|
|
|
|
|
QVBoxLayout *qvboxlayoutColour = new QVBoxLayout(qwidgetColour);
|
|
|
|
@ -416,8 +416,8 @@ void KSettingsDlg::configRead()
|
|
|
|
|
tdeconfig->setGroup("List Options");
|
|
|
|
|
|
|
|
|
|
QFont qfontDefault = QFont("helvetica", 12);
|
|
|
|
|
QColor qcolorDefault = Qt::white;
|
|
|
|
|
QColor qcolorDefaultBG = Qt::gray;
|
|
|
|
|
TQColor qcolorDefault = Qt::white;
|
|
|
|
|
TQColor qcolorDefaultBG = Qt::gray;
|
|
|
|
|
|
|
|
|
|
m_qcolorTempList = tdeconfig->readColorEntry("listColor", &qcolorDefault);
|
|
|
|
|
m_kcolorbuttonList->setColor(m_qcolorTempList);
|
|
|
|
|