From bc48dbcc61e0c39023cc81c09f716d2ed8158648 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 18 Dec 2011 18:09:22 -0600 Subject: Rename old tq methods that no longer need a unique name --- kbfxlib/common/kbfxfontchooser.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kbfxlib/common/kbfxfontchooser.cpp') diff --git a/kbfxlib/common/kbfxfontchooser.cpp b/kbfxlib/common/kbfxfontchooser.cpp index 2a445d6..ca0fd74 100644 --- a/kbfxlib/common/kbfxfontchooser.cpp +++ b/kbfxlib/common/kbfxfontchooser.cpp @@ -26,7 +26,7 @@ KBFXFontChooser::KBFXFontChooser ( TQWidget *parent, const char *name ) TQHBoxLayout* tqlayout = new TQHBoxLayout ( this, 0, KDialog::spacingHint() ); m_label = new TQLabel ( this, "fontLabel" ); - m_label->tqsetSizePolicy ( TQSizePolicy::Expanding, TQSizePolicy::Fixed, TRUE); + m_label->setSizePolicy ( TQSizePolicy::Expanding, TQSizePolicy::Fixed, TRUE); // m_label->setFrameShape ( TQFrame::StyledPanel ); // m_label->setFrameShadow ( TQFrame::Sunken ); @@ -36,9 +36,9 @@ KBFXFontChooser::KBFXFontChooser ( TQWidget *parent, const char *name ) m_label->setMaximumHeight ( m_button -> height() ); m_label->setMinimumHeight ( m_button -> height() ); TQString fontText = i18n ( "Font..." ); -// m_button->tqsetSizePolicy ( TQSizePolicy::Minimum, TQSizePolicy::Minimum, TRUE); +// m_button->setSizePolicy ( TQSizePolicy::Minimum, TQSizePolicy::Minimum, TRUE); m_button->setText ( fontText ); - TQIconSet iconSet = SmallIconSet ( TQString::tqfromLatin1 ( "fonts" ) ); + TQIconSet iconSet = SmallIconSet ( TQString::fromLatin1 ( "fonts" ) ); TQPixmap pixmap = iconSet.pixmap ( TQIconSet::Small, TQIconSet::Normal ); m_button->setIconSet ( iconSet ); m_button->setFixedWidth ( m_button->fontMetrics().width ( fontText ) + @@ -66,7 +66,7 @@ void KBFXFontChooser::updateFontLabel() TQString s = TQString ( "%1 (%2pt) " ).arg ( m_font.family() ).arg ( m_font.pointSize() ); m_label->setFont ( m_font ); m_label->setText ( s ); - m_label->tqsetAlignment ( TQt::AlignLeft | TQt::AlignVCenter ); + m_label->setAlignment ( TQt::AlignLeft | TQt::AlignVCenter ); emit FontChanged(); } -- cgit v1.2.1