summaryrefslogtreecommitdiffstats
path: root/kate/tabbarextension
diff options
context:
space:
mode:
Diffstat (limited to 'kate/tabbarextension')
-rw-r--r--kate/tabbarextension/plugin_katetabbarextension.cpp18
-rw-r--r--kate/tabbarextension/plugin_katetabbarextension.h12
2 files changed, 15 insertions, 15 deletions
diff --git a/kate/tabbarextension/plugin_katetabbarextension.cpp b/kate/tabbarextension/plugin_katetabbarextension.cpp
index 51d675d..e26524c 100644
--- a/kate/tabbarextension/plugin_katetabbarextension.cpp
+++ b/kate/tabbarextension/plugin_katetabbarextension.cpp
@@ -112,8 +112,8 @@ void KatePluginTabBarExtension::addView(Kate::MainWindow *win)
TDEToolBar* toolbar = dynamic_cast<TDEToolBar*>
(win->guiFactory()->container("tabbarExtensionToolBar", view));
if (toolbar) {
- connect(toolbar, TQT_SIGNAL(orientationChanged(Qt::Orientation)),
- view->tabbar, TQT_SLOT(slotMoved(Qt::Orientation)));
+ connect(toolbar, TQT_SIGNAL(orientationChanged(TQt::Orientation)),
+ view->tabbar, TQT_SLOT(slotMoved(TQt::Orientation)));
}
}
@@ -128,7 +128,7 @@ void KatePluginTabBarExtension::removeView(Kate::MainWindow *win)
if (m_views.count() == 1)
{
pConfig->writeEntry("horizontal orientation",
- view->tabbar->orientation()==Qt::Horizontal?true:false);
+ view->tabbar->orientation()==TQt::Horizontal?true:false);
pConfig->writeEntry("sort", view->tabbar->sortByName());
pConfig->writeEntry("closeOnMiddleClick", view->tabbar->closeOnMiddleClick());
pConfig->sync();
@@ -270,10 +270,10 @@ KateTabBarExtension::KateTabBarExtension(Kate::DocumentManager *pDocManager,
{
if (bHorizOrientation) {
top = new TQBoxLayout(this, TQBoxLayout::LeftToRight);
- m_orientation = Qt::Horizontal;
+ m_orientation = TQt::Horizontal;
} else {
top = new TQBoxLayout(this, TQBoxLayout::TopToBottom);
- m_orientation = Qt::Vertical;
+ m_orientation = TQt::Vertical;
}
// add all already existing documents to the tabbar
@@ -294,15 +294,15 @@ KateTabBarExtension::KateTabBarExtension(Kate::DocumentManager *pDocManager,
setCloseOnMiddleClick(bCloseOnMiddleClick);
}
-void KateTabBarExtension::slotMoved(Qt::Orientation o)
+void KateTabBarExtension::slotMoved(TQt::Orientation o)
{
// the tabbar moved (top, right, bottom, left or fluently)
switch (o) {
- case Qt::Vertical:
+ case TQt::Vertical:
top->setDirection(TQBoxLayout::TopToBottom);
break;
- case Qt::Horizontal:
+ case TQt::Horizontal:
top->setDirection(TQBoxLayout::LeftToRight);
break;
}
@@ -480,7 +480,7 @@ KateTabBarExtensionConfigPage::KateTabBarExtensionConfigPage(
TQVBoxLayout* top = new TQVBoxLayout(this, 0,
KDialogBase::spacingHint());
- TQGroupBox* gb = new TQGroupBox(1, Qt::Horizontal, i18n("Behavior options"),
+ TQGroupBox* gb = new TQGroupBox(1, TQt::Horizontal, i18n("Behavior options"),
this, "tab_bar_extension_config_page_layout" );
gb->setInsideSpacing(KDialogBase::spacingHint());
pSortAlpha = new TQCheckBox(i18n("Sort files alphabetically"), gb);
diff --git a/kate/tabbarextension/plugin_katetabbarextension.h b/kate/tabbarextension/plugin_katetabbarextension.h
index 710eb97..f991c42 100644
--- a/kate/tabbarextension/plugin_katetabbarextension.h
+++ b/kate/tabbarextension/plugin_katetabbarextension.h
@@ -179,8 +179,8 @@ class KateTabBarExtension : public TQWidget
* constructor
* @param pDocManager pointer to kate's document manager
* @param win pinter to the main window
- * @param bHorizOrientation true, if orientation is Qt::Horizontal
- * @param bSort true, if orientation is Qt::Horizontal
+ * @param bHorizOrientation true, if orientation is Horizontal
+ * @param bSort true, if orientation is Horizontal
* @param parent parent widget
* @param name name of widget
* @param f widget flags
@@ -196,7 +196,7 @@ class KateTabBarExtension : public TQWidget
/**
* @return the tabbar's orientation
*/
- Qt::Orientation orientation() const { return m_orientation; }
+ TQt::Orientation orientation() const { return m_orientation; }
/**
* @return true, when sorting is alphabetically
@@ -271,9 +271,9 @@ class KateTabBarExtension : public TQWidget
/**
* called whenever the toolbar's orientation changes
- * @param o new orientation [Qt::Horizontal or Qt::Vertical]
+ * @param o new orientation [TQt::Horizontal or TQt::Vertical]
*/
- void slotMoved(Qt::Orientation o);
+ void slotMoved(TQt::Orientation o);
/**
* called when we want to close the document associated with the tab
@@ -288,7 +288,7 @@ class KateTabBarExtension : public TQWidget
Kate::DocumentManager* m_docManager; ///< pointer to the document manager
// TQPtrList <KateTabBarButton> m_tabs; ///< list containing all tabs
MyPtrList m_tabs; ///< list containing all tabs
- Qt::Orientation m_orientation; ///< save tabbar's orientation
+ TQt::Orientation m_orientation; ///< save tabbar's orientation
bool m_sort; ///< how to sort
bool m_closeOnMiddleClick; ///< Enable/disable "close document on mouse middle click" feature
};