summaryrefslogtreecommitdiffstats
path: root/kbfxlib/common
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:30:08 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:30:08 -0600
commitf61f056943a68ecc5fa7e7789a7b9c82901a9157 (patch)
tree799817257250d71692535da8bd6e8aa3b3519b3f /kbfxlib/common
parent7e48847d0a084b6ff3a5d0eeb4a3c1b975cda4e5 (diff)
downloadkbfx-f61f056943a68ecc5fa7e7789a7b9c82901a9157.tar.gz
kbfx-f61f056943a68ecc5fa7e7789a7b9c82901a9157.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kbfxlib/common')
-rw-r--r--kbfxlib/common/kbfxconfig.cpp16
-rw-r--r--kbfxlib/common/kbfxconfig.h2
-rw-r--r--kbfxlib/common/kbfxfontchooser.cpp14
-rw-r--r--kbfxlib/common/kbfxfontchooser.h2
-rw-r--r--kbfxlib/common/kbfxpixmaplabel.cpp4
5 files changed, 19 insertions, 19 deletions
diff --git a/kbfxlib/common/kbfxconfig.cpp b/kbfxlib/common/kbfxconfig.cpp
index 942a173..0e1c8ee 100644
--- a/kbfxlib/common/kbfxconfig.cpp
+++ b/kbfxlib/common/kbfxconfig.cpp
@@ -208,7 +208,7 @@ void KbfxConfig::setThemeInfoDefault()
void KbfxConfig::setThemeDefault()
{
- /* set default theme tqlayout configuration */
+ /* set default theme layout configuration */
m_KbfxNormalButtonPath = m_KbfxNormalButtonPathDefault;
m_KbfxHoverButtonPath = m_KbfxHoverButtonPathDefault;
m_KbfxPressedButtonPath = m_KbfxPressedButtonPathDefault;
@@ -325,7 +325,7 @@ void KbfxConfig::readThemeInfo ( TQString &themePath, TQString &themeName )
void KbfxConfig::read()
{
/* read general configuration */
- KConfigSkeleton *confskel = new KConfigSkeleton ( TQString::tqfromLatin1 ( "kbfxrc" ) );
+ KConfigSkeleton *confskel = new KConfigSkeleton ( TQString::fromLatin1 ( "kbfxrc" ) );
KConfig *conf = confskel->config();
@@ -487,7 +487,7 @@ void KbfxConfig::readFontrc ( TQString & themePath, TQString & themeName, bool u
void KbfxConfig::readThemerc ( TQString &themePath, TQString &themeName, bool user_rc )
{
- /* if a new version use default theme tqlayout */
+ /* if a new version use default theme layout */
if ( m_KbfxGeneralVersion < m_KbfxGeneralVersionDefault )
{
themePath = m_SpinxThemeBasePathDefault;
@@ -499,7 +499,7 @@ void KbfxConfig::readThemerc ( TQString &themePath, TQString &themeName, bool us
KbfxOffImg = TQPixmap ( KbfxPlasmaPixmapProvider::PixmapPath ( "off", themePath, themeName ) );
/* use theme's default dude image if any */
- KConfigSkeleton *confskel = new KConfigSkeleton ( TQString::tqfromLatin1 ( "kbfxrc" ) );
+ KConfigSkeleton *confskel = new KConfigSkeleton ( TQString::fromLatin1 ( "kbfxrc" ) );
KConfig *conf = confskel->config();
TQString __default = KGlobal::iconLoader()->iconPath ( "kbfx", ( int ) KIcon::Desktop, FALSE );
@@ -525,7 +525,7 @@ void KbfxConfig::readThemerc ( TQString &themePath, TQString &themeName, bool us
setThemeDefault();
- /* get some theme tqlayout settings from theme file or from theme section */
+ /* get some theme layout settings from theme file or from theme section */
TQString _abs_path = "";
TQFileInfo * info = new TQFileInfo ( themePath + themeName + "/kbfxlayoutrc" );
TQFileInfo * info_theme = new TQFileInfo ( KbfxThemeRcDestination + "/" + themeName + "_layoutrc" );
@@ -618,7 +618,7 @@ void KbfxConfig::readThemerc ( TQString &themePath, TQString &themeName, bool us
m_commentMargine = layoutconfig->readNumEntry ( "CommentMargin",m_commentMargineDefault );
m_iconSize = layoutconfig->readNumEntry ( "IconSize",m_iconSizeDefault );
- kdDebug() << "Read default tqlayout settings for theme: "
+ kdDebug() << "Read default layout settings for theme: "
<< themeName
<< " from file: "
<< _abs_path
@@ -702,7 +702,7 @@ void KbfxConfig::write()
kdDebug() << "Deleting general RC file: " << KbfxRcPath << endl;
}
- KConfigSkeleton *confskel = new KConfigSkeleton ( TQString::tqfromLatin1 ( "kbfxrc" ) );
+ KConfigSkeleton *confskel = new KConfigSkeleton ( TQString::fromLatin1 ( "kbfxrc" ) );
/* write general KBFX configuration options */
KConfig *conf = confskel->config();
@@ -774,7 +774,7 @@ void KbfxConfig::writeThemerc ( TQString & themeName )
{
checkValues();
- /* write tqlayout theme configuration from theme name */
+ /* write layout theme configuration from theme name */
KConfig *layoutconfig = new KConfig ( KbfxThemeRcDestination + "/" + themeName + "_layoutrc" );
layoutconfig->setGroup ( "KbfxButton" );
diff --git a/kbfxlib/common/kbfxconfig.h b/kbfxlib/common/kbfxconfig.h
index edfc66d..8de6886 100644
--- a/kbfxlib/common/kbfxconfig.h
+++ b/kbfxlib/common/kbfxconfig.h
@@ -178,7 +178,7 @@ class KbfxConfig
TQStringList m_pluginsRight;
TQStringList m_pluginsRightDefault;
- /* tqlayout */
+ /* layout */
int m_facePos_x;
int m_facePos_xDefault;
int m_facePos_y;
diff --git a/kbfxlib/common/kbfxfontchooser.cpp b/kbfxlib/common/kbfxfontchooser.cpp
index 2a445d6..2ebf7d9 100644
--- a/kbfxlib/common/kbfxfontchooser.cpp
+++ b/kbfxlib/common/kbfxfontchooser.cpp
@@ -23,27 +23,27 @@
KBFXFontChooser::KBFXFontChooser ( TQWidget *parent, const char *name )
: TQWidget ( parent, name )
{
- TQHBoxLayout* tqlayout = new TQHBoxLayout ( this, 0, KDialog::spacingHint() );
+ TQHBoxLayout* layout = 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 );
- tqlayout->addWidget ( m_label );
+ layout->addWidget ( m_label );
m_button = new TQPushButton ( this, "fontButton" );
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 ) +
3 * KDialog::spacingHint() + pixmap.width() );
- tqlayout->addWidget ( m_button );
+ layout->addWidget ( m_button );
connect ( m_button, TQT_SIGNAL ( clicked() ), this, TQT_SLOT ( buttonClicked() ) );
@@ -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();
}
diff --git a/kbfxlib/common/kbfxfontchooser.h b/kbfxlib/common/kbfxfontchooser.h
index 8d0191d..486fa49 100644
--- a/kbfxlib/common/kbfxfontchooser.h
+++ b/kbfxlib/common/kbfxfontchooser.h
@@ -27,7 +27,7 @@
#include <tqwidget.h>
#include <tqlabel.h>
#include <tqpushbutton.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqfont.h>
#include <tqsizepolicy.h>
diff --git a/kbfxlib/common/kbfxpixmaplabel.cpp b/kbfxlib/common/kbfxpixmaplabel.cpp
index 25f43bc..b563f91 100644
--- a/kbfxlib/common/kbfxpixmaplabel.cpp
+++ b/kbfxlib/common/kbfxpixmaplabel.cpp
@@ -29,7 +29,7 @@ KbfxPixmapLabel::KbfxPixmapLabel ( TQWidget *parent, const char *name, WFlags fl
setFrameShape ( TQLabel::LineEditPanel );
setFrameShadow ( TQLabel::Plain );
setScaledContents ( FALSE );
- tqsetAlignment ( int ( TQLabel::WordBreak | TQLabel::AlignCenter ) );
+ setAlignment ( int ( TQLabel::WordBreak | TQLabel::AlignCenter ) );
setMouseTracking ( TRUE );
}
@@ -43,7 +43,7 @@ void KbfxPixmapLabel::normalize ()
setFrameShape ( TQLabel::NoFrame );
setFrameShadow ( TQLabel::Plain );
setScaledContents ( FALSE );
- tqsetAlignment ( int ( TQLabel::WordBreak | TQLabel::AlignCenter ) );
+ setAlignment ( int ( TQLabel::WordBreak | TQLabel::AlignCenter ) );
}
/* processing drag events over label */