summaryrefslogtreecommitdiffstats
path: root/kgeography/src/mapchooser.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/mapchooser.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/mapchooser.cpp')
-rw-r--r--kgeography/src/mapchooser.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kgeography/src/mapchooser.cpp b/kgeography/src/mapchooser.cpp
index 57dcb1c9..11410d39 100644
--- a/kgeography/src/mapchooser.cpp
+++ b/kgeography/src/mapchooser.cpp
@@ -13,25 +13,25 @@
#include <kmessagebox.h>
#include <kstandarddirs.h>
-#include <qhbox.h>
-#include <qimage.h>
-#include <qlayout.h>
+#include <tqhbox.h>
+#include <tqimage.h>
+#include <tqlayout.h>
#include "mapchooser.h"
-mapChooser::mapChooser(QWidget *parent) : KDialogBase(parent, 0, true, i18n("Choose Map to Use"), KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, true)
+mapChooser::mapChooser(TQWidget *parent) : KDialogBase(parent, 0, true, i18n("Choose Map to Use"), KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, true)
{
- QHBox *mainHB;
- QStringList list;
+ TQHBox *mainHB;
+ TQStringList list;
KGmap *m;
- QWidget *mapArea;
- QGridLayout *mapLay;
+ TQWidget *mapArea;
+ TQGridLayout *mapLay;
- mainHB = new QHBox(this);
+ mainHB = new TQHBox(this);
mainHB -> setSpacing(KDialog::spacingHint());
list = KGlobal::dirs() -> findAllResources("appdata", "*.kgm");
- p_listBox = new QListBox(mainHB);
- QStringList::iterator it;
+ p_listBox = new TQListBox(mainHB);
+ TQStringList::iterator it;
for(it = list.begin(); it != list.end(); ++it)
{
if (!p_reader.parseMap(*it))
@@ -42,22 +42,22 @@ mapChooser::mapChooser(QWidget *parent) : KDialogBase(parent, 0, true, i18n("Cho
else
{
m = p_reader.getMap();
- QString text = i18n(m -> getFileName().utf8(), m -> getName().utf8());
+ TQString text = i18n(m -> getFileName().utf8(), m -> getName().utf8());
p_listBox -> insertItem(text);
p_maps.insert(text, m);
}
}
- mapArea = new QWidget(mainHB);
+ mapArea = new TQWidget(mainHB);
mapArea -> setFixedSize(300, 225);
- mapLay = new QGridLayout(mapArea, 3, 3);
+ mapLay = new TQGridLayout(mapArea, 3, 3);
- p_image = new QWidget(mapArea);
+ p_image = new TQWidget(mapArea);
mapLay -> addWidget(p_image, 1, 1);
- connect(p_listBox, SIGNAL(highlighted(const QString&)), this, SLOT(putImage(const QString&)));
- connect(p_listBox, SIGNAL(selected(int)), this, SLOT(slotOk()));
+ connect(p_listBox, TQT_SIGNAL(highlighted(const TQString&)), this, TQT_SLOT(putImage(const TQString&)));
+ connect(p_listBox, TQT_SIGNAL(selected(int)), this, TQT_SLOT(slotOk()));
setMainWidget(mainHB);
@@ -80,12 +80,12 @@ KGmap *mapChooser::getMap()
return m;
}
-void mapChooser::putImage(const QString &mapName)
+void mapChooser::putImage(const TQString &mapName)
{
KGmap *m;
m = p_maps[mapName];
- QImage image(m -> getMapFile());
- image = image.smoothScale(300, 225, QImage::ScaleMin);
+ TQImage image(m -> getMapFile());
+ image = image.smoothScale(300, 225, TQImage::ScaleMin);
p_image -> setPaletteBackgroundPixmap(image);
p_image -> setFixedSize(image.size());
}