summaryrefslogtreecommitdiffstats
path: root/kreversi/kzoommainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kreversi/kzoommainwindow.cpp')
-rw-r--r--kreversi/kzoommainwindow.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kreversi/kzoommainwindow.cpp b/kreversi/kzoommainwindow.cpp
index 4da50935..56f46742 100644
--- a/kreversi/kzoommainwindow.cpp
+++ b/kreversi/kzoommainwindow.cpp
@@ -34,11 +34,11 @@ KZoomMainWindow::KZoomMainWindow(uint min, uint max, uint step,
installEventFilter(this);
m_zoomInAction =
- KStdAction::zoomIn(this, SLOT(zoomIn()), actionCollection());
+ KStdAction::zoomIn(this, TQT_SLOT(zoomIn()), actionCollection());
m_zoomOutAction =
- KStdAction::zoomOut(this, SLOT(zoomOut()), actionCollection());
+ KStdAction::zoomOut(this, TQT_SLOT(zoomOut()), actionCollection());
m_menu =
- KStdAction::showMenubar(this, SLOT(toggleMenubar()), actionCollection());
+ KStdAction::showMenubar(this, TQT_SLOT(toggleMenubar()), actionCollection());
}
@@ -53,37 +53,37 @@ 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->m_widgets.append(widget);
- connect(widget, SIGNAL(destroyed()), zm, SLOT(widgetDestroyed()));
+ connect(widget, TQT_SIGNAL(destroyed()), zm, TQT_SLOT(widgetDestroyed()));
}
void KZoomMainWindow::widgetDestroyed()
{
- m_widgets.remove(static_cast<const QWidget *>(sender()));
+ m_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...
@@ -96,7 +96,7 @@ void KZoomMainWindow::setZoom(uint zoom)
m_zoom = zoom;
writeZoomSetting(m_zoom);
- QPtrListIterator<QWidget> it(m_widgets);
+ TQPtrListIterator<TQWidget> it(m_widgets);
for (; it.current(); ++it)
(*it)->adjustSize();