diff options
author | Timothy Pearson <[email protected]> | 2013-02-01 15:15:35 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-02-01 15:15:35 -0600 |
commit | f78eb03afb8c9a380985d26286afc40b4c89b292 (patch) | |
tree | 3c087e2f119e645c902958c3bc3c802abf078ad0 /parts/filelist | |
parent | da1941ccadffe5ae70ee111c53f0ec2b3d990869 (diff) | |
download | tdevelop-f78eb03afb8c9a380985d26286afc40b4c89b292.tar.gz tdevelop-f78eb03afb8c9a380985d26286afc40b4c89b292.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'parts/filelist')
-rw-r--r-- | parts/filelist/filelist_widget.cpp | 6 | ||||
-rw-r--r-- | parts/filelist/filelist_widget.h | 2 | ||||
-rw-r--r-- | parts/filelist/projectviewpart.cpp | 10 | ||||
-rw-r--r-- | parts/filelist/projectviewpart.h | 16 | ||||
-rw-r--r-- | parts/filelist/toolbarguibuilder.cpp | 2 | ||||
-rw-r--r-- | parts/filelist/toolbarguibuilder.h | 2 |
6 files changed, 19 insertions, 19 deletions
diff --git a/parts/filelist/filelist_widget.cpp b/parts/filelist/filelist_widget.cpp index 93769573..150bd156 100644 --- a/parts/filelist/filelist_widget.cpp +++ b/parts/filelist/filelist_widget.cpp @@ -35,7 +35,7 @@ * @return */ FileListWidget::FileListWidget(ProjectviewPart *part, TQWidget *parent) - : KListView(parent), TQToolTip( viewport() ), _part( part ) + : TDEListView(parent), TQToolTip( viewport() ), _part( part ) { addColumn( "" ); header()->hide(); @@ -132,7 +132,7 @@ void FileListWidget::refreshFileList( ) TQStringList selections = storeSelections(); int scrollbarPos = verticalScrollBar()->value(); - KListView::clear(); + TDEListView::clear(); KURL::List list = _part->partController()->openURLs(); TQValueListIterator<KURL> it = list.begin(); @@ -224,7 +224,7 @@ void FileListWidget::popupMenu( TQListViewItem * item, const TQPoint & p, int ) { if ( item ) { - KPopupMenu popup; + TDEPopupMenu popup; popup.insertTitle( i18n("File List") ); popup.insertItem( i18n("Close Selected"), this, TQT_SLOT(closeSelectedFiles()) ); popup.insertItem( i18n("Save Selected"), this, TQT_SLOT(saveSelectedFiles()) ); diff --git a/parts/filelist/filelist_widget.h b/parts/filelist/filelist_widget.h index 19ed6329..b61cd8cc 100644 --- a/parts/filelist/filelist_widget.h +++ b/parts/filelist/filelist_widget.h @@ -30,7 +30,7 @@ class FileListItem; namespace KParts { class Part; } -class FileListWidget : public KListView, public TQToolTip +class FileListWidget : public TDEListView, public TQToolTip { Q_OBJECT diff --git a/parts/filelist/projectviewpart.cpp b/parts/filelist/projectviewpart.cpp index e963ac9f..6763dff4 100644 --- a/parts/filelist/projectviewpart.cpp +++ b/parts/filelist/projectviewpart.cpp @@ -275,23 +275,23 @@ void ProjectviewPart::init() void ProjectviewPart::setupActions() { - m_openPrjViewAction = new KSelectAction(i18n("Open Session..."), 0, actionCollection(), "viewsession_open"); + m_openPrjViewAction = new TDESelectAction(i18n("Open Session..."), 0, actionCollection(), "viewsession_open"); connect(m_openPrjViewAction, TQT_SIGNAL(activated(const TQString &)), this, TQT_SLOT(slotOpenProjectView(const TQString &))); m_openPrjViewAction->setToolTip(i18n("Open Session")); - m_savePrjViewAction = new KAction(i18n("Save Session"), "filesave", 0, this, TQT_SLOT(slotSaveProjectView()), actionCollection(), "viewsession_save"); + m_savePrjViewAction = new TDEAction(i18n("Save Session"), "filesave", 0, this, TQT_SLOT(slotSaveProjectView()), actionCollection(), "viewsession_save"); - m_newPrjViewAction = new KAction(i18n("New Session..."), "filenew", 0, this, TQT_SLOT(slotSaveAsProjectView()), actionCollection(), "viewsession_new"); + m_newPrjViewAction = new TDEAction(i18n("New Session..."), "filenew", 0, this, TQT_SLOT(slotSaveAsProjectView()), actionCollection(), "viewsession_new"); - m_deletePrjViewAction = new KSelectAction(i18n("Delete Session"), "editdelete", 0, actionCollection(), "viewsession_delete"); + m_deletePrjViewAction = new TDESelectAction(i18n("Delete Session"), "editdelete", 0, actionCollection(), "viewsession_delete"); connect(m_deletePrjViewAction, TQT_SIGNAL(activated(const TQString &)), this, TQT_SLOT(slotDeleteProjectView(const TQString &))); m_deletePrjViewAction->setToolTip(i18n("Delete Session")); - m_deleteCurrentPrjViewAction = new KAction(i18n("Delete Session"), "editdelete", 0, this, TQT_SLOT(slotDeleteProjectViewCurent()), actionCollection(), "viewsession_deletecurrent"); + m_deleteCurrentPrjViewAction = new TDEAction(i18n("Delete Session"), "editdelete", 0, this, TQT_SLOT(slotDeleteProjectViewCurent()), actionCollection(), "viewsession_deletecurrent"); m_deleteCurrentPrjViewAction->setToolTip(i18n("Delete Session")); diff --git a/parts/filelist/projectviewpart.h b/parts/filelist/projectviewpart.h index d2924c61..732ef0f3 100644 --- a/parts/filelist/projectviewpart.h +++ b/parts/filelist/projectviewpart.h @@ -32,13 +32,13 @@ class TQPopupMenu; -class KAction; -class KSelectAction; +class TDEAction; +class TDESelectAction; class KDialogBase; class Context; class ConfigWidgetProxy; class FileListWidget; -class KToolBar; +class TDEToolBar; class TQVBox; class ToolbarGUIBuilder; @@ -147,11 +147,11 @@ private: ViewMap m_projectViews; //container for the views - KAction *m_savePrjViewAction; - KAction *m_newPrjViewAction; - KAction *m_deleteCurrentPrjViewAction; - KSelectAction *m_openPrjViewAction; - KSelectAction *m_deletePrjViewAction; + TDEAction *m_savePrjViewAction; + TDEAction *m_newPrjViewAction; + TDEAction *m_deleteCurrentPrjViewAction; + TDESelectAction *m_openPrjViewAction; + TDESelectAction *m_deletePrjViewAction; TQString m_currentProjectView; TQString m_defaultProjectView; // load this after project loaded diff --git a/parts/filelist/toolbarguibuilder.cpp b/parts/filelist/toolbarguibuilder.cpp index e292d092..03e9acfd 100644 --- a/parts/filelist/toolbarguibuilder.cpp +++ b/parts/filelist/toolbarguibuilder.cpp @@ -23,7 +23,7 @@ #include <ktoolbar.h> ToolbarGUIBuilder::ToolbarGUIBuilder(TQWidget *parent, TQWidget *widget) - : KXMLGUIBuilder(widget), KToolBar(parent, "ToolbarGUIbuilder"), m_parent(parent) + : KXMLGUIBuilder(widget), TDEToolBar(parent, "ToolbarGUIbuilder"), m_parent(parent) { // setHidden(true); setFrameStyle(0); diff --git a/parts/filelist/toolbarguibuilder.h b/parts/filelist/toolbarguibuilder.h index e81c300e..477e9c13 100644 --- a/parts/filelist/toolbarguibuilder.h +++ b/parts/filelist/toolbarguibuilder.h @@ -31,7 +31,7 @@ * toolview * @author Jens Herden */ -class ToolbarGUIBuilder : public KXMLGUIBuilder, public KToolBar +class ToolbarGUIBuilder : public KXMLGUIBuilder, public TDEToolBar { public: ToolbarGUIBuilder(TQWidget *parent, TQWidget *widget); |