summaryrefslogtreecommitdiffstats
path: root/kdeui/kstatusbar.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/kstatusbar.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/kstatusbar.cpp')
-rw-r--r--kdeui/kstatusbar.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kdeui/kstatusbar.cpp b/kdeui/kstatusbar.cpp
index 8a2a964b5..b70c8ae9c 100644
--- a/kdeui/kstatusbar.cpp
+++ b/kdeui/kstatusbar.cpp
@@ -24,9 +24,9 @@
#include <kglobal.h>
-KStatusBarLabel::KStatusBarLabel( const QString& text, int _id,
+KStatusBarLabel::KStatusBarLabel( const TQString& text, int _id,
KStatusBar *parent, const char *name) :
- QLabel( parent, name)
+ TQLabel( parent, name)
{
id = _id;
@@ -34,39 +34,39 @@ KStatusBarLabel::KStatusBarLabel( const QString& text, int _id,
// umm... Mosfet? Can you help here?
- // Warning: QStatusBar draws shaded rectangle around every item - which
+ // Warning: TQStatusBar draws shaded rectangle around every item - which
// IMHO is stupid.
// So NoFrame|Plain is the best you get. the problem is that only in case of
- // StyledPanel|Something you get QFrame to call QStyle::drawPanel().
+ // StyledPanel|Something you get TQFrame to call TQStyle::drawPanel().
setLineWidth (0);
- setFrameStyle (QFrame::NoFrame);
+ setFrameStyle (TQFrame::NoFrame);
setAlignment( AlignHCenter | AlignVCenter | SingleLine );
- connect (this, SIGNAL(itemPressed(int)), parent, SIGNAL(pressed(int)));
- connect (this, SIGNAL(itemReleased(int)), parent, SIGNAL(released(int)));
+ connect (this, TQT_SIGNAL(itemPressed(int)), parent, TQT_SIGNAL(pressed(int)));
+ connect (this, TQT_SIGNAL(itemReleased(int)), parent, TQT_SIGNAL(released(int)));
}
-void KStatusBarLabel::mousePressEvent (QMouseEvent *)
+void KStatusBarLabel::mousePressEvent (TQMouseEvent *)
{
emit itemPressed (id);
}
-void KStatusBarLabel::mouseReleaseEvent (QMouseEvent *)
+void KStatusBarLabel::mouseReleaseEvent (TQMouseEvent *)
{
emit itemReleased (id);
}
-KStatusBar::KStatusBar( QWidget *parent, const char *name )
- : QStatusBar( parent, name )
+KStatusBar::KStatusBar( TQWidget *parent, const char *name )
+ : TQStatusBar( parent, name )
{
// make the size grip stuff configurable
// ...but off by default (sven)
KConfig *config = KGlobal::config();
- QString group(config->group());
- config->setGroup(QString::fromLatin1("StatusBar style"));
- bool grip_enabled = config->readBoolEntry(QString::fromLatin1("SizeGripEnabled"), false);
+ TQString group(config->group());
+ config->setGroup(TQString::fromLatin1("StatusBar style"));
+ bool grip_enabled = config->readBoolEntry(TQString::fromLatin1("SizeGripEnabled"), false);
setSizeGripEnabled(grip_enabled);
config->setGroup(group);
}
@@ -75,7 +75,7 @@ KStatusBar::~KStatusBar ()
{
}
-void KStatusBar::insertItem( const QString& text, int id, int stretch, bool permanent)
+void KStatusBar::insertItem( const TQString& text, int id, int stretch, bool permanent)
{
if (items[id])
kdDebug() << "KStatusBar::insertItem: item id " << id << " already exists." << endl;
@@ -109,7 +109,7 @@ bool KStatusBar::hasItem( int id ) const
return false;
}
-void KStatusBar::changeItem( const QString& text, int id )
+void KStatusBar::changeItem( const TQString& text, int id )
{
KStatusBarLabel *l = items[id];
if (l)