summaryrefslogtreecommitdiffstats
path: root/kalarm/fontcolourbutton.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kalarm/fontcolourbutton.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/fontcolourbutton.cpp')
-rw-r--r--kalarm/fontcolourbutton.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kalarm/fontcolourbutton.cpp b/kalarm/fontcolourbutton.cpp
index b3a55359a..48d0f9220 100644
--- a/kalarm/fontcolourbutton.cpp
+++ b/kalarm/fontcolourbutton.cpp
@@ -20,9 +20,9 @@
#include "kalarm.h"
-#include <qcheckbox.h>
-#include <qlayout.h>
-#include <qwhatsthis.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
+#include <tqwhatsthis.h>
#include <klocale.h>
#include <kdebug.h>
@@ -38,28 +38,28 @@
= Font/colour selection button.
=============================================================================*/
-FontColourButton::FontColourButton(QWidget* parent, const char* name)
- : QFrame(parent, name),
+FontColourButton::FontColourButton(TQWidget* parent, const char* name)
+ : TQFrame(parent, name),
mReadOnly(false)
{
setFrameStyle(NoFrame);
- QHBoxLayout* layout = new QHBoxLayout(this, 0, KDialog::spacingHint());
+ TQHBoxLayout* layout = new TQHBoxLayout(this, 0, KDialog::spacingHint());
mButton = new PushButton(i18n("Font && Co&lor..."), this);
mButton->setFixedSize(mButton->sizeHint());
- connect(mButton, SIGNAL(clicked()), SLOT(slotButtonPressed()));
- QWhatsThis::add(mButton,
+ connect(mButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotButtonPressed()));
+ TQWhatsThis::add(mButton,
i18n("Choose the font, and foreground and background color, for the alarm message."));
layout->addWidget(mButton);
// Font and colour sample display
- mSample = new QLineEdit(this);
+ mSample = new TQLineEdit(this);
mSample->setMinimumHeight(QMAX(mSample->fontMetrics().lineSpacing(), mButton->height()*3/2));
- mSample->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::MinimumExpanding);
+ mSample->setSizePolicy(TQSizePolicy::Ignored, TQSizePolicy::MinimumExpanding);
mSample->setText(i18n("The Quick Brown Fox Jumps Over The Lazy Dog"));
mSample->setCursorPosition(0);
mSample->setAlignment(Qt::AlignCenter);
- QWhatsThis::add(mSample,
+ TQWhatsThis::add(mSample,
i18n("This sample text illustrates the current font and color settings. "
"You may edit it to test special characters."));
layout->addWidget(mSample);
@@ -71,20 +71,20 @@ void FontColourButton::setDefaultFont()
mSample->setFont(Preferences::messageFont());
}
-void FontColourButton::setFont(const QFont& font)
+void FontColourButton::setFont(const TQFont& font)
{
mDefaultFont = false;
mFont = font;
mSample->setFont(mFont);
}
-void FontColourButton::setBgColour(const QColor& colour)
+void FontColourButton::setBgColour(const TQColor& colour)
{
mBgColour = colour;
mSample->setPaletteBackgroundColor(mBgColour);
}
-void FontColourButton::setFgColour(const QColor& colour)
+void FontColourButton::setFgColour(const TQColor& colour)
{
mFgColour = colour;
mSample->setPaletteForegroundColor(mFgColour);
@@ -99,7 +99,7 @@ void FontColourButton::slotButtonPressed()
FontColourDlg dlg(mBgColour, mFgColour, mFont, mDefaultFont,
i18n("Choose Alarm Font & Color"), this, "fontColourDlg");
dlg.setReadOnly(mReadOnly);
- if (dlg.exec() == QDialog::Accepted)
+ if (dlg.exec() == TQDialog::Accepted)
{
mDefaultFont = dlg.defaultFont();
mFont = dlg.font();
@@ -118,15 +118,15 @@ void FontColourButton::slotButtonPressed()
= Font/colour selection dialog.
=============================================================================*/
-FontColourDlg::FontColourDlg(const QColor& bgColour, const QColor& fgColour, const QFont& font,
- bool defaultFont, const QString& caption, QWidget* parent, const char* name)
+FontColourDlg::FontColourDlg(const TQColor& bgColour, const TQColor& fgColour, const TQFont& font,
+ bool defaultFont, const TQString& caption, TQWidget* parent, const char* name)
: KDialogBase(parent, name, true, caption, Ok|Cancel, Ok, false),
mReadOnly(false)
{
- QWidget* page = new QWidget(this);
+ TQWidget* page = new TQWidget(this);
setMainWidget(page);
- QVBoxLayout* layout = new QVBoxLayout(page, 0, spacingHint());
- mChooser = new FontColourChooser(page, 0, false, QStringList(), QString::null, false, true, true);
+ TQVBoxLayout* layout = new TQVBoxLayout(page, 0, spacingHint());
+ mChooser = new FontColourChooser(page, 0, false, TQStringList(), TQString::null, false, true, true);
mChooser->setBgColour(bgColour);
mChooser->setFgColour(fgColour);
if (defaultFont)