summaryrefslogtreecommitdiffstats
path: root/libksirtet/base/kzoommainwindow.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
commit576eb4299a00bc053db35414406f46372a0f70f2 (patch)
tree4c030922d533821db464af566188e7d40cc8848c /libksirtet/base/kzoommainwindow.cpp
parent0718336b6017d1a4fc1d626544180a5a2a29ddec (diff)
downloadtdegames-576eb4299a00bc053db35414406f46372a0f70f2.tar.gz
tdegames-576eb4299a00bc053db35414406f46372a0f70f2.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libksirtet/base/kzoommainwindow.cpp')
-rw-r--r--libksirtet/base/kzoommainwindow.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/libksirtet/base/kzoommainwindow.cpp b/libksirtet/base/kzoommainwindow.cpp
index 115d5175..4e1b85a5 100644
--- a/libksirtet/base/kzoommainwindow.cpp
+++ b/libksirtet/base/kzoommainwindow.cpp
@@ -30,11 +30,11 @@ KZoomMainWindow::KZoomMainWindow(uint min, uint max, uint step, const char *name
{
installEventFilter(this);
- _zoomInAction = KStdAction::zoomIn(this, SLOT(zoomIn()), actionCollection());
+ _zoomInAction = KStdAction::zoomIn(this, TQT_SLOT(zoomIn()), actionCollection());
_zoomOutAction =
- KStdAction::zoomOut(this, SLOT(zoomOut()), actionCollection());
+ KStdAction::zoomOut(this, TQT_SLOT(zoomOut()), actionCollection());
_menu =
- KStdAction::showMenubar(this, SLOT(toggleMenubar()), actionCollection());
+ KStdAction::showMenubar(this, TQT_SLOT(toggleMenubar()), actionCollection());
}
void KZoomMainWindow::init(const char *popupName)
@@ -48,32 +48,32 @@ void KZoomMainWindow::init(const char *popupName)
// context popup
if (popupName) {
- QPopupMenu *popup =
- static_cast<QPopupMenu *>(factory()->container(popupName, this));
+ TQPopupMenu *popup =
+ static_cast<TQPopupMenu *>(factory()->container(popupName, this));
Q_ASSERT(popup);
if (popup) KContextMenuManager::insert(this, popup);
}
}
-void KZoomMainWindow::addWidget(QWidget *widget)
+void KZoomMainWindow::addWidget(TQWidget *widget)
{
widget->adjustSize();
- QWidget *tlw = widget->topLevelWidget();
+ TQWidget *tlw = widget->topLevelWidget();
KZoomMainWindow *zm =
static_cast<KZoomMainWindow *>(tlw->qt_cast("KZoomMainWindow"));
Q_ASSERT(zm);
zm->_widgets.append(widget);
- connect(widget, SIGNAL(destroyed()), zm, SLOT(widgetDestroyed()));
+ connect(widget, TQT_SIGNAL(destroyed()), zm, TQT_SLOT(widgetDestroyed()));
}
void KZoomMainWindow::widgetDestroyed()
{
- _widgets.remove(static_cast<const QWidget *>(sender()));
+ _widgets.remove(static_cast<const TQWidget *>(sender()));
}
-bool KZoomMainWindow::eventFilter(QObject *o, QEvent *e)
+bool KZoomMainWindow::eventFilter(TQObject *o, TQEvent *e)
{
- if ( e->type()==QEvent::LayoutHint )
+ if ( e->type()==TQEvent::LayoutHint )
setFixedSize(minimumSize()); // because K/QMainWindow
// does not manage fixed central widget
// with hidden menubar...
@@ -84,7 +84,7 @@ void KZoomMainWindow::setZoom(uint zoom)
{
_zoom = zoom;
writeZoomSetting(_zoom);
- QPtrListIterator<QWidget> it(_widgets);
+ TQPtrListIterator<TQWidget> it(_widgets);
for (; it.current(); ++it)
(*it)->adjustSize();;
_zoomOutAction->setEnabled( _zoom>_minZoom );