summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/widgetaction.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /kdevdesigner/designer/widgetaction.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdevdesigner/designer/widgetaction.cpp')
-rw-r--r--kdevdesigner/designer/widgetaction.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kdevdesigner/designer/widgetaction.cpp b/kdevdesigner/designer/widgetaction.cpp
index 36a9c14c..7568a98c 100644
--- a/kdevdesigner/designer/widgetaction.cpp
+++ b/kdevdesigner/designer/widgetaction.cpp
@@ -25,22 +25,22 @@
**********************************************************************/
#include "widgetaction.h"
-#include <qwidget.h>
-#include <qtoolbutton.h>
+#include <tqwidget.h>
+#include <tqtoolbutton.h>
#include "mainwindow.h"
-#include <qstylefactory.h>
-#include <qstyle.h>
+#include <tqstylefactory.h>
+#include <tqstyle.h>
-static QStyle *windowsStyle = 0;
+static TQStyle *windowsStyle = 0;
-void WidgetAction::addedTo( QWidget *w, QWidget *container )
+void WidgetAction::addedTo( TQWidget *w, TQWidget *container )
{
- if ( ::qt_cast<QToolButton*>(w) && ::qt_cast<QScrollView*>(container->parent()->parent()) ) {
+ if ( ::qt_cast<TQToolButton*>(w) && ::qt_cast<TQScrollView*>(container->parent()->parent()) ) {
if ( !windowsStyle )
- windowsStyle = QStyleFactory::create( "windows" );
+ windowsStyle = TQStyleFactory::create( "windows" );
w->setStyle( windowsStyle );
- ( (QToolButton*)w )->setUsesTextLabel( TRUE );
- ( (QToolButton*)w )->setTextPosition( QToolButton::Right );
+ ( (TQToolButton*)w )->setUsesTextLabel( TRUE );
+ ( (TQToolButton*)w )->setTextPosition( TQToolButton::Right );
w->setBackgroundMode( container->backgroundMode() );
}
}
@@ -51,7 +51,7 @@ WidgetAction::~WidgetAction()
MainWindow::self->toolActions.removeRef( this );
}
-void WidgetAction::init( const QString &g )
+void WidgetAction::init( const TQString &g )
{
MainWindow::self->toolActions.append( this );
grp = g;