diff options
Diffstat (limited to 'src/qalculatepreferencesdialog.cpp')
-rw-r--r-- | src/qalculatepreferencesdialog.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/qalculatepreferencesdialog.cpp b/src/qalculatepreferencesdialog.cpp index 02d9eee..b2dca67 100644 --- a/src/qalculatepreferencesdialog.cpp +++ b/src/qalculatepreferencesdialog.cpp @@ -20,17 +20,17 @@ #include "qalculatepreferencesdialog.h" #include "qalculate_tde_utils.h" -#include <klocale.h> +#include <tdelocale.h> #include <tqbuttongroup.h> #include <tqcheckbox.h> #include <tqlabel.h> #include <tqradiobutton.h> #include <tqtooltip.h> -#include <kdeversion.h> -#if KDE_VERSION_MAJOR > 3 || KDE_VERSION_MINOR > 1 -#include <kfontrequester.h> +#include <tdeversion.h> +#if TDE_VERSION_MAJOR > 3 || TDE_VERSION_MINOR > 1 +#include <tdefontrequester.h> #endif -#if KDE_VERSION_MAJOR < 4 && KDE_VERSION_MINOR < 2 +#if TDE_VERSION_MAJOR < 4 && TDE_VERSION_MINOR < 2 #include <tqtabwidget.h> #else #include <ktabwidget.h> @@ -56,16 +56,16 @@ extern TQColor status_warning_color; extern int use_icon_buttons; extern bool rpn_keypad_only; -#if KDE_VERSION_MAJOR < 4 && KDE_VERSION_MINOR < 2 -#include <kfontdialog.h> +#if TDE_VERSION_MAJOR < 4 && TDE_VERSION_MINOR < 2 +#include <tdefontdialog.h> -class KFontRequester : public TQWidget +class TDEFontRequester : public TQWidget { Q_OBJECT public: - KFontRequester( TQWidget *parent=0L, const char *name=0L, + TDEFontRequester( TQWidget *parent=0L, const char *name=0L, bool onlyFixed=false ); TQFont font() const { return m_selFont; } @@ -90,7 +90,7 @@ class KFontRequester : public TQWidget }; -KFontRequester::KFontRequester( TQWidget *parent, const char *name, +TDEFontRequester::TDEFontRequester( TQWidget *parent, const char *name, bool onlyFixed ) : TQWidget( parent, name ), m_onlyFixed( onlyFixed ) { @@ -111,16 +111,16 @@ KFontRequester::KFontRequester( TQWidget *parent, const char *name, } -void KFontRequester::setFont( const TQFont &font, bool onlyFixed ) +void TDEFontRequester::setFont( const TQFont &font, bool onlyFixed ) { m_selFont = font; m_onlyFixed = onlyFixed; displaySampleText(); } -void KFontRequester::buttonClicked() +void TDEFontRequester::buttonClicked() { - int result = KFontDialog::getFont( m_selFont, m_onlyFixed, parentWidget() ); + int result = TDEFontDialog::getFont( m_selFont, m_onlyFixed, parentWidget() ); if ( result == KDialog::Accepted ) { @@ -128,7 +128,7 @@ void KFontRequester::buttonClicked() } } -void KFontRequester::displaySampleText() +void TDEFontRequester::displaySampleText() { m_sampleLabel->setFont( m_selFont ); @@ -146,7 +146,7 @@ void KFontRequester::displaySampleText() QalculatePreferencesDialog::QalculatePreferencesDialog(TQWidget *parent, const char *name) : KDialogBase(parent, name, true, i18n("Preferences"), Ok | Apply | Cancel, Ok, false) { -#if KDE_VERSION_MAJOR < 4 && KDE_VERSION_MINOR < 2 +#if TDE_VERSION_MAJOR < 4 && TDE_VERSION_MINOR < 2 TQTabWidget *tabs = new TQTabWidget(this); #else TQTabWidget *tabs = new KTabWidget(this); @@ -229,26 +229,26 @@ QalculatePreferencesDialog::QalculatePreferencesDialog(TQWidget *parent, const c vbox = new TQVBoxLayout(page2, spacingHint()); useCustomResultFontButton = new TQCheckBox(i18n("Custom result font"), page2); vbox->addWidget(useCustomResultFontButton); - resultFontEdit = new KFontRequester(page2); + resultFontEdit = new TDEFontRequester(page2); vbox->addWidget(resultFontEdit); useCustomExpressionFontButton = new TQCheckBox(i18n("Custom expression font"), page2); vbox->addWidget(useCustomExpressionFontButton); - expressionFontEdit = new KFontRequester(page2); + expressionFontEdit = new TDEFontRequester(page2); vbox->addWidget(expressionFontEdit); useCustomStatusFontButton = new TQCheckBox(i18n("Custom status font"), page2); vbox->addWidget(useCustomStatusFontButton); - statusFontEdit = new KFontRequester(page2); + statusFontEdit = new TDEFontRequester(page2); vbox->addWidget(statusFontEdit); grid = new TQGridLayout(vbox); grid->addWidget(new TQLabel(i18n("Status error color:"), page2), 0, 0); -#if KDE_VERSION_MAJOR == 3 && KDE_VERSION_MINOR < 1 +#if TDE_VERSION_MAJOR == 3 && TDE_VERSION_MINOR < 1 statusErrorColorButton = new KColorButton(page2); #else statusErrorColorButton = new KColorButton("red", "red", page2); #endif grid->addWidget(statusErrorColorButton, 0, 1); grid->addWidget(new TQLabel(i18n("Status warning color:"), page2), 1, 0); -#if KDE_VERSION_MAJOR == 3 && KDE_VERSION_MINOR < 1 +#if TDE_VERSION_MAJOR == 3 && TDE_VERSION_MINOR < 1 statusWarningColorButton = new KColorButton(page2); #else statusWarningColorButton = new KColorButton("blue", "blue", page2); |