summaryrefslogtreecommitdiffstats
path: root/kalarm/fontcolourbutton.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kalarm/fontcolourbutton.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/fontcolourbutton.cpp')
-rw-r--r--kalarm/fontcolourbutton.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kalarm/fontcolourbutton.cpp b/kalarm/fontcolourbutton.cpp
index 62888d46..ca62d101 100644
--- a/kalarm/fontcolourbutton.cpp
+++ b/kalarm/fontcolourbutton.cpp
@@ -38,8 +38,8 @@
= Font/colour selection button.
=============================================================================*/
-FontColourButton::FontColourButton(TQWidget* parent, const char* name)
- : TQFrame(parent, name),
+FontColourButton::FontColourButton(TQWidget* tqparent, const char* name)
+ : TQFrame(tqparent, name),
mReadOnly(false)
{
setFrameStyle(NoFrame);
@@ -54,11 +54,11 @@ FontColourButton::FontColourButton(TQWidget* parent, const char* name)
// Font and colour sample display
mSample = new TQLineEdit(this);
- mSample->setMinimumHeight(QMAX(mSample->fontMetrics().lineSpacing(), mButton->height()*3/2));
+ mSample->setMinimumHeight(TQMAX(mSample->fontMetrics().lineSpacing(), mButton->height()*3/2));
mSample->tqsetSizePolicy(TQSizePolicy::Ignored, TQSizePolicy::MinimumExpanding);
mSample->setText(i18n("The Quick Brown Fox Jumps Over The Lazy Dog"));
mSample->setCursorPosition(0);
- mSample->tqsetAlignment(Qt::AlignCenter);
+ mSample->tqsetAlignment(TQt::AlignCenter);
TQWhatsThis::add(mSample,
i18n("This sample text illustrates the current font and color settings. "
"You may edit it to test special characters."));
@@ -119,14 +119,14 @@ void FontColourButton::slotButtonPressed()
=============================================================================*/
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),
+ bool defaultFont, const TQString& caption, TQWidget* tqparent, const char* name)
+ : KDialogBase(tqparent, name, true, caption, Ok|Cancel, Ok, false),
mReadOnly(false)
{
TQWidget* page = new TQWidget(this);
setMainWidget(page);
TQVBoxLayout* tqlayout = new TQVBoxLayout(page, 0, spacingHint());
- mChooser = new FontColourChooser(page, 0, false, TQStringList(), TQString::null, false, true, true);
+ mChooser = new FontColourChooser(page, 0, false, TQStringList(), TQString(), false, true, true);
mChooser->setBgColour(bgColour);
mChooser->setFgColour(fgColour);
if (defaultFont)