summaryrefslogtreecommitdiffstats
path: root/kdeui/kfontrequester.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeui/kfontrequester.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/kfontrequester.cpp')
-rw-r--r--kdeui/kfontrequester.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/kdeui/kfontrequester.cpp b/kdeui/kfontrequester.cpp
index d32b9d9d7..293f9d546 100644
--- a/kdeui/kfontrequester.cpp
+++ b/kdeui/kfontrequester.cpp
@@ -19,37 +19,37 @@
#include "kfontrequester.h"
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qlayout.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <tqlabel.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
#include <kfontdialog.h>
#include <klocale.h>
-KFontRequester::KFontRequester( QWidget *parent, const char *name,
- bool onlyFixed ) : QWidget( parent, name ),
+KFontRequester::KFontRequester( TQWidget *parent, const char *name,
+ bool onlyFixed ) : TQWidget( parent, name ),
m_onlyFixed( onlyFixed )
{
- QHBoxLayout *layout = new QHBoxLayout( this, 0, KDialog::spacingHint() );
+ TQHBoxLayout *layout = new TQHBoxLayout( this, 0, KDialog::spacingHint() );
- m_sampleLabel = new QLabel( this, "m_sampleLabel" );
- m_button = new QPushButton( i18n( "Choose..." ), this, "m_button" );
+ m_sampleLabel = new TQLabel( this, "m_sampleLabel" );
+ m_button = new TQPushButton( i18n( "Choose..." ), this, "m_button" );
- m_sampleLabel->setFrameStyle( QFrame::StyledPanel | QFrame::Sunken );
+ m_sampleLabel->setFrameStyle( TQFrame::StyledPanel | TQFrame::Sunken );
setFocusProxy( m_button );
layout->addWidget( m_sampleLabel, 1 );
layout->addWidget( m_button );
- connect( m_button, SIGNAL( clicked() ), SLOT( buttonClicked() ) );
+ connect( m_button, TQT_SIGNAL( clicked() ), TQT_SLOT( buttonClicked() ) );
displaySampleText();
setToolTip();
}
-void KFontRequester::setFont( const QFont &font, bool onlyFixed )
+void KFontRequester::setFont( const TQFont &font, bool onlyFixed )
{
m_selFont = font;
m_onlyFixed = onlyFixed;
@@ -58,13 +58,13 @@ void KFontRequester::setFont( const QFont &font, bool onlyFixed )
emit fontSelected( m_selFont );
}
-void KFontRequester::setSampleText( const QString &text )
+void KFontRequester::setSampleText( const TQString &text )
{
m_sampleText = text;
displaySampleText();
}
-void KFontRequester::setTitle( const QString &title )
+void KFontRequester::setTitle( const TQString &title )
{
m_title = title;
setToolTip();
@@ -90,7 +90,7 @@ void KFontRequester::displaySampleText()
size = m_selFont.pixelSize();
if ( m_sampleText.isEmpty() )
- m_sampleLabel->setText( QString( "%1 %2" ).arg( m_selFont.family() )
+ m_sampleLabel->setText( TQString( "%1 %2" ).arg( m_selFont.family() )
.arg( size ) );
else
m_sampleLabel->setText( m_sampleText );
@@ -98,24 +98,24 @@ void KFontRequester::displaySampleText()
void KFontRequester::setToolTip()
{
- QToolTip::remove( m_button );
- QToolTip::add( m_button, i18n( "Click to select a font" ) );
+ TQToolTip::remove( m_button );
+ TQToolTip::add( m_button, i18n( "Click to select a font" ) );
- QToolTip::remove( m_sampleLabel );
- QWhatsThis::remove( m_sampleLabel );
+ TQToolTip::remove( m_sampleLabel );
+ TQWhatsThis::remove( m_sampleLabel );
if ( m_title.isNull() )
{
- QToolTip::add( m_sampleLabel, i18n( "Preview of the selected font" ) );
- QWhatsThis::add( m_sampleLabel,
+ TQToolTip::add( m_sampleLabel, i18n( "Preview of the selected font" ) );
+ TQWhatsThis::add( m_sampleLabel,
i18n( "This is a preview of the selected font. You can change it"
" by clicking the \"Choose...\" button." ) );
}
else
{
- QToolTip::add( m_sampleLabel,
+ TQToolTip::add( m_sampleLabel,
i18n( "Preview of the \"%1\" font" ).arg( m_title ) );
- QWhatsThis::add( m_sampleLabel,
+ TQWhatsThis::add( m_sampleLabel,
i18n( "This is a preview of the \"%1\" font. You can change it"
" by clicking the \"Choose...\" button." ).arg( m_title ) );
}