diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-04 19:59:21 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-04 19:59:21 +0000 |
commit | b9c374725620ec064db7610132a8b8969fa405b9 (patch) | |
tree | 645c03144cac22f7b4fb5bd10985d389e8954290 /src/kile/kileapplication.cpp | |
parent | 71729070d61b36b96acd7fa9c34bba0cb8f58c3b (diff) | |
download | kile-b9c374725620ec064db7610132a8b8969fa405b9.tar.gz kile-b9c374725620ec064db7610132a8b8969fa405b9.zip |
TQt4 port kile
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kile@1239285 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kile/kileapplication.cpp')
-rw-r--r-- | src/kile/kileapplication.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/kile/kileapplication.cpp b/src/kile/kileapplication.cpp index 7764d51..b78a160 100644 --- a/src/kile/kileapplication.cpp +++ b/src/kile/kileapplication.cpp @@ -19,29 +19,29 @@ #include <kstandarddirs.h> #include <kate/document.h> -#include <qframe.h> -#include <qpixmap.h> -#include <qlabel.h> -#include <qpainter.h> -#include <qfont.h> -#include <qfontmetrics.h> +#include <tqframe.h> +#include <tqpixmap.h> +#include <tqlabel.h> +#include <tqpainter.h> +#include <tqfont.h> +#include <tqfontmetrics.h> -static QFrame *pix=0; -static QWidget *splash=0; +static TQFrame *pix=0; +static TQWidget *splash=0; KileApplication::KileApplication() { - QRect screen = QApplication::desktop()->screenGeometry(); - QPixmap pm(KGlobal::dirs()->findResource("appdata","pics/kile_splash.png")); - splash = new QWidget( 0, "splash", WDestructiveClose | WStyle_Customize | WStyle_NoBorder | WX11BypassWM | WStyle_StaysOnTop ); - pix=new QFrame(splash,"pix",QWidget::WStyle_NoBorder | QWidget::WStyle_Customize); + TQRect screen = TQApplication::desktop()->screenGeometry(); + TQPixmap pm(KGlobal::dirs()->findResource("appdata","pics/kile_splash.png")); + splash = new TQWidget( 0, "splash", WDestructiveClose | WStyle_Customize | WStyle_NoBorder | WX11BypassWM | WStyle_StaysOnTop ); + pix=new TQFrame(splash,"pix",TQWidget::WStyle_NoBorder | TQWidget::WStyle_Customize); pix->setBackgroundPixmap(pm); pix->setLineWidth(0); pix->setGeometry( 0,0,398, 120 ); splash->adjustSize(); splash->setCaption( "Kile" ); - splash->move( screen.center() - QPoint( splash->width() / 2, splash->height() / 2 ) ); + splash->move( screen.center() - TQPoint( splash->width() / 2, splash->height() / 2 ) ); splash->show(); } KileApplication::~KileApplication(){ |