@ -39,7 +39,7 @@ This appendix contains an example of a
// ----------------------------------------------------------------------------
// KDE Includes
#include <kdialogbase.h>
#include <k fontdialog.h>
#include <tde fontdialog.h>
#include <kcolorbutton.h>
#include <klineedit.h>
@ -76,9 +76,9 @@ private:
/** Color background */
KColorButton *m_kcolorbuttonBack;
/** Select font header */
TDEFontChooser *m_k fontchooserHeader;
TDEFontChooser *m_tde fontchooserHeader;
/** Font cell setting */
TDEFontChooser *m_k fontchooserCell;
TDEFontChooser *m_tde fontchooserCell;
/** No rows to show in register */
KLineEdit *m_klineeditRowCount;
@ -387,14 +387,14 @@ void KSettingsDlg::setPageList()
QVBox *qvboxInsideTab1 = new QVBox( this, "tab1" );
qvboxInsideTab1->setSpacing( 6 );
qvboxInsideTab1->setMargin( 11 );
m_k fontchooserHeader = new TDEFontChooser(qvboxInsideTab1);
m_tde fontchooserHeader = new TDEFontChooser(qvboxInsideTab1);
qtabwidget->insertTab(qvboxInsideTab1, i18n("Header Font"));
// Create another tab adding a font chooser widget
QVBox *qvboxInsideTab2 = new QVBox( this, "tab2" );
qvboxInsideTab2->setSpacing( 6 );
qvboxInsideTab2->setMargin( 11 );
m_k fontchooserCell = new TDEFontChooser(qvboxInsideTab2);
m_tde fontchooserCell = new TDEFontChooser(qvboxInsideTab2);
qtabwidget->addTab(qvboxInsideTab2, i18n("Cell Font"));
}
@ -428,10 +428,10 @@ void KSettingsDlg::configRead()
m_qfontTempHeader = tdeconfig->readFontEntry("listHeaderFont",
&qfontDefault);
m_k fontchooserHeader->setFont(m_qfontTempHeader);
m_tde fontchooserHeader->setFont(m_qfontTempHeader);
m_qfontTempCell = tdeconfig->readFontEntry("listCellFont", &qfontDefault);
m_k fontchooserCell->setFont(m_qfontTempCell);
m_tde fontchooserCell->setFont(m_qfontTempCell);
m_qstringTempRowCount = tdeconfig->readEntry("RowCount", "2");
m_klineeditRowCount->setText(m_qstringTempRowCount);
@ -456,8 +456,8 @@ void KSettingsDlg::configWrite()
tdeconfig->setGroup("List Options");
tdeconfig->writeEntry("listColor", m_kcolorbuttonList->color());
tdeconfig->writeEntry("listBGColor", m_kcolorbuttonBack->color());
tdeconfig->writeEntry("listHeaderFont", m_k fontchooserHeader->font());
tdeconfig->writeEntry("listCellFont", m_k fontchooserCell->font());
tdeconfig->writeEntry("listHeaderFont", m_tde fontchooserHeader->font());
tdeconfig->writeEntry("listCellFont", m_tde fontchooserCell->font());
tdeconfig->writeEntry("RowCount", m_klineeditRowCount->text());
tdeconfig->writeEntry("ShowGrid", m_qcheckboxShowGrid->isChecked());
tdeconfig->writeEntry("ColourPerTransaction",
@ -536,8 +536,8 @@ void KSettingsDlg::slotUser1()
m_qradiobuttonStartPrompt->setChecked(m_bTempStartPrompt);
m_kcolorbuttonList->setColor(m_qcolorTempList);
m_kcolorbuttonBack->setColor(m_qcolorTempListBG);
m_k fontchooserHeader->setFont(m_qfontTempHeader);
m_k fontchooserCell->setFont(m_qfontTempCell);
m_tde fontchooserHeader->setFont(m_qfontTempHeader);
m_tde fontchooserCell->setFont(m_qfontTempCell);
m_klineeditRowCount->setText(m_qstringTempRowCount);
m_qcheckboxShowGrid->setChecked(m_bTempShowGrid);
m_qradiobuttonPerTransaction->setChecked(m_bTempColourPerTransaction);