summaryrefslogtreecommitdiffstats
path: root/kgeography/src/mypopup.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
commit0a6e0958c03e41c87b15557b6f407874f20c2f8d (patch)
tree2cdd58c4013b1be09cfcbb4ddae2b05712b9aeee /kgeography/src/mypopup.cpp
parent83f9dfafc157ff7823804b3ff457b43d021a5b4b (diff)
downloadtdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.tar.gz
tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kgeography/src/mypopup.cpp')
-rw-r--r--kgeography/src/mypopup.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kgeography/src/mypopup.cpp b/kgeography/src/mypopup.cpp
index c7dede67..b9f1c78e 100644
--- a/kgeography/src/mypopup.cpp
+++ b/kgeography/src/mypopup.cpp
@@ -8,57 +8,57 @@
* (at your option) any later version. *
***************************************************************************/
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qimage.h>
-#include <qpixmap.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqimage.h>
+#include <tqpixmap.h>
#include "mypopup.h"
-myPopup::myPopup(QWidget *parent, const QString &text, const QString &text2, const QString &flagFile) : QFrame(parent)
+myPopup::myPopup(TQWidget *parent, const TQString &text, const TQString &text2, const TQString &flagFile) : TQFrame(parent)
{
- QHBoxLayout *lay = new QHBoxLayout(this);
+ TQHBoxLayout *lay = new TQHBoxLayout(this);
lay -> setMargin(4);
lay -> setSpacing(4);
- QWidget *vbox = new QWidget(this);
+ TQWidget *vbox = new TQWidget(this);
lay -> addWidget(vbox);
- QVBoxLayout *vboxLayout = new QVBoxLayout(vbox);
+ TQVBoxLayout *vboxLayout = new TQVBoxLayout(vbox);
vboxLayout -> setMargin(0);
vboxLayout -> setSpacing(0);
- QLabel *l = new QLabel(text, vbox);
+ TQLabel *l = new TQLabel(text, vbox);
vboxLayout -> addWidget(l);
if (!text2.isNull())
{
- QLabel *l2 = new QLabel(text2, vbox);
+ TQLabel *l2 = new TQLabel(text2, vbox);
l2 -> setAlignment(Qt::AlignCenter);
vboxLayout -> addWidget(l2);
}
if (!flagFile.isNull())
{
- QLabel *flag = new QLabel(this);
+ TQLabel *flag = new TQLabel(this);
lay -> addWidget(flag);
- QImage flagImg(flagFile);
+ TQImage flagImg(flagFile);
flag -> setPixmap(flagImg.smoothScale(flagImg.width() / 5, flagImg. height() / 5));
flag -> setAlignment(Qt::AlignCenter);
}
l -> setAlignment(Qt::AlignCenter);
- QFont f = l -> font();
+ TQFont f = l -> font();
f.setBold(true);
l -> setFont(f);
- setFrameStyle(QFrame::Box | QFrame::Plain);
+ setFrameStyle(TQFrame::Box | TQFrame::Plain);
setLineWidth(2);
setFixedSize(sizeHint());
}
-void myPopup::mousePressEvent(QMouseEvent *)
+void myPopup::mousePressEvent(TQMouseEvent *)
{
emit deleteMe();
}