summaryrefslogtreecommitdiffstats
path: root/kbfxlib/common/kbfxfontchooser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbfxlib/common/kbfxfontchooser.cpp')
-rw-r--r--kbfxlib/common/kbfxfontchooser.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kbfxlib/common/kbfxfontchooser.cpp b/kbfxlib/common/kbfxfontchooser.cpp
index c05a81e..24f773a 100644
--- a/kbfxlib/common/kbfxfontchooser.cpp
+++ b/kbfxlib/common/kbfxfontchooser.cpp
@@ -20,32 +20,32 @@
#include "kbfxfontchooser.h"
-KBFXFontChooser::KBFXFontChooser ( QWidget *parent, const char *name )
- : QWidget ( parent, name )
+KBFXFontChooser::KBFXFontChooser ( TQWidget *tqparent, const char *name )
+ : TQWidget ( tqparent, name )
{
- QHBoxLayout* layout = new QHBoxLayout ( this, 0, KDialog::spacingHint() );
+ TQHBoxLayout* tqlayout = new TQHBoxLayout ( this, 0, KDialog::spacingHint() );
- m_label = new QLabel ( this, "fontLabel" );
- m_label->setSizePolicy ( QSizePolicy::Expanding, QSizePolicy::Fixed, TRUE);
-// m_label->setFrameShape ( QFrame::StyledPanel );
-// m_label->setFrameShadow ( QFrame::Sunken );
+ m_label = new TQLabel ( this, "fontLabel" );
+ m_label->tqsetSizePolicy ( TQSizePolicy::Expanding, TQSizePolicy::Fixed, TRUE);
+// m_label->setFrameShape ( TQFrame::StyledPanel );
+// m_label->setFrameShadow ( TQFrame::Sunken );
- layout->addWidget ( m_label );
+ tqlayout->addWidget ( m_label );
- m_button = new QPushButton ( this, "fontButton" );
+ m_button = new TQPushButton ( this, "fontButton" );
m_label->setMaximumHeight ( m_button -> height() );
m_label->setMinimumHeight ( m_button -> height() );
- QString fontText = i18n ( "Font..." );
-// m_button->setSizePolicy ( QSizePolicy::Minimum, QSizePolicy::Minimum, TRUE);
+ TQString fontText = i18n ( "Font..." );
+// m_button->tqsetSizePolicy ( TQSizePolicy::Minimum, TQSizePolicy::Minimum, TRUE);
m_button->setText ( fontText );
- QIconSet iconSet = SmallIconSet ( QString::fromLatin1 ( "fonts" ) );
- QPixmap pixmap = iconSet.pixmap ( QIconSet::Small, QIconSet::Normal );
+ TQIconSet iconSet = SmallIconSet ( TQString::tqfromLatin1 ( "fonts" ) );
+ TQPixmap pixmap = iconSet.pixmap ( TQIconSet::Small, TQIconSet::Normal );
m_button->setIconSet ( iconSet );
m_button->setFixedWidth ( m_button->fontMetrics().width ( fontText ) +
3 * KDialog::spacingHint() + pixmap.width() );
- layout->addWidget ( m_button );
+ tqlayout->addWidget ( m_button );
- connect ( m_button, SIGNAL ( clicked() ), this, SLOT ( buttonClicked() ) );
+ connect ( m_button, TQT_SIGNAL ( clicked() ), this, TQT_SLOT ( buttonClicked() ) );
updateFontLabel();
@@ -55,7 +55,7 @@ KBFXFontChooser::KBFXFontChooser ( QWidget *parent, const char *name )
KBFXFontChooser::~KBFXFontChooser()
{}
-void KBFXFontChooser::setFont ( const QFont& font )
+void KBFXFontChooser::setFont ( const TQFont& font )
{
m_font = font;
updateFontLabel();
@@ -63,10 +63,10 @@ void KBFXFontChooser::setFont ( const QFont& font )
void KBFXFontChooser::updateFontLabel()
{
- QString s = QString ( "%1 (%2pt) " ).arg ( m_font.family() ).arg ( m_font.pointSize() );
+ TQString s = TQString ( "%1 (%2pt) " ).arg ( m_font.family() ).arg ( m_font.pointSize() );
m_label->setFont ( m_font );
m_label->setText ( s );
- m_label->setAlignment ( Qt::AlignLeft | Qt::AlignVCenter );
+ m_label->tqsetAlignment ( TQt::AlignLeft | TQt::AlignVCenter );
emit FontChanged();
}