summaryrefslogtreecommitdiffstats
path: root/parts/filecreate
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-02-01 15:15:35 -0600
committerTimothy Pearson <[email protected]>2013-02-01 15:15:35 -0600
commitf78eb03afb8c9a380985d26286afc40b4c89b292 (patch)
tree3c087e2f119e645c902958c3bc3c802abf078ad0 /parts/filecreate
parentda1941ccadffe5ae70ee111c53f0ec2b3d990869 (diff)
downloadtdevelop-f78eb03afb8c9a380985d26286afc40b4c89b292.tar.gz
tdevelop-f78eb03afb8c9a380985d26286afc40b4c89b292.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'parts/filecreate')
-rw-r--r--parts/filecreate/filecreate_listitem.cpp10
-rw-r--r--parts/filecreate/filecreate_listitem.h2
-rw-r--r--parts/filecreate/filecreate_part.cpp8
-rw-r--r--parts/filecreate/filecreate_part.h8
-rw-r--r--parts/filecreate/filecreate_widget3.cpp4
-rw-r--r--parts/filecreate/filecreate_widget3.h2
6 files changed, 17 insertions, 17 deletions
diff --git a/parts/filecreate/filecreate_listitem.cpp b/parts/filecreate/filecreate_listitem.cpp
index 09dd0dc4..d792ab26 100644
--- a/parts/filecreate/filecreate_listitem.cpp
+++ b/parts/filecreate/filecreate_listitem.cpp
@@ -21,7 +21,7 @@
namespace FileCreate {
ListItem::ListItem(TQListView * listview, const FileType * filetype) :
- KListViewItem(listview), m_filetype(filetype),
+ TDEListViewItem(listview), m_filetype(filetype),
m_filetypeRenderer(NULL)
{
init();
@@ -29,7 +29,7 @@ namespace FileCreate {
ListItem::ListItem(ListItem * listitem, const FileType * filetype) :
- KListViewItem(listitem), m_filetype(filetype),
+ TDEListViewItem(listitem), m_filetype(filetype),
m_filetypeRenderer(NULL)
{
init();
@@ -46,12 +46,12 @@ namespace FileCreate {
m_filetypeRenderer = new TQSimpleRichText( text(1), listView()->font() );
m_filetypeRenderer->setWidth(listView()->columnWidth(1));
setHeight(m_filetypeRenderer->height());
- KListViewItem::setup();
+ TDEListViewItem::setup();
}
void ListItem::setHeight( int height )
{
- KListViewItem::setHeight( TQMAX(TQMAX(height,m_iconHeight), m_filetypeRenderer->height() ) );
+ TDEListViewItem::setHeight( TQMAX(TQMAX(height,m_iconHeight), m_filetypeRenderer->height() ) );
}
void ListItem::prepareResize() {
@@ -73,7 +73,7 @@ namespace FileCreate {
return;
}
- KListViewItem::paintCell( p, cg, column, width, align );
+ TDEListViewItem::paintCell( p, cg, column, width, align );
}
void ListItem::init()
diff --git a/parts/filecreate/filecreate_listitem.h b/parts/filecreate/filecreate_listitem.h
index 5dae2dcd..6cb9ecc5 100644
--- a/parts/filecreate/filecreate_listitem.h
+++ b/parts/filecreate/filecreate_listitem.h
@@ -21,7 +21,7 @@ class TQSimpleRichText;
namespace FileCreate {
-class ListItem : public KListViewItem {
+class ListItem : public TDEListViewItem {
public:
ListItem(TQListView *listview, const FileType *filetype);
diff --git a/parts/filecreate/filecreate_part.cpp b/parts/filecreate/filecreate_part.cpp
index 0c907db1..0d4db9bc 100644
--- a/parts/filecreate/filecreate_part.cpp
+++ b/parts/filecreate/filecreate_part.cpp
@@ -78,7 +78,7 @@ FileCreatePart::FileCreatePart(TQObject *parent, const char *name, const TQStrin
this, TQT_SLOT(insertConfigWidget(const KDialogBase*, TQWidget*, unsigned int )) );
- KToolBarPopupAction * newAction = new KToolBarPopupAction( i18n("&New"), "filenew", CTRL+TQt::Key_N, this, TQT_SLOT(slotNewFile()), actionCollection(), "file_new");
+ TDEToolBarPopupAction * newAction = new TDEToolBarPopupAction( i18n("&New"), "filenew", CTRL+TQt::Key_N, this, TQT_SLOT(slotNewFile()), actionCollection(), "file_new");
newAction->setWhatsThis( i18n("<b>New file</b><p>Creates a new file. Also adds it the project if the <b>Add to project</b> checkbox is turned on.") );
newAction->setToolTip( i18n("Create a new file") );
m_newPopupMenu = newAction->popupMenu();
@@ -140,13 +140,13 @@ void FileCreatePart::slotAboutToShowNewPopupMenu()
m_newPopupMenu->setItemParameter( id, (long)filetype );
} else
{
- KPopupMenu* subMenu = NULL;
+ TDEPopupMenu* subMenu = NULL;
TQPtrList<FileType> subtypes = filetype->subtypes();
for(FileType * subtype = subtypes.first(); subtype; subtype=subtypes.next())
{
if (subtype->enabled()){
if( !subMenu )
- subMenu = new KPopupMenu(0,0);
+ subMenu = new TDEPopupMenu(0,0);
TQPixmap iconPix = m_iconLoader->loadIcon(
subtype->icon(), KIcon::Desktop, KIcon::SizeSmall,
KIcon::DefaultState, NULL, true);
@@ -159,7 +159,7 @@ void FileCreatePart::slotAboutToShowNewPopupMenu()
{
if( !m_subPopups )
{
- m_subPopups = new TQPtrList<KPopupMenu>;
+ m_subPopups = new TQPtrList<TDEPopupMenu>;
m_subPopups->setAutoDelete(true);
}
m_subPopups->append( subMenu );
diff --git a/parts/filecreate/filecreate_part.h b/parts/filecreate/filecreate_part.h
index 18a9ccb1..9d090493 100644
--- a/parts/filecreate/filecreate_part.h
+++ b/parts/filecreate/filecreate_part.h
@@ -23,7 +23,7 @@
#include "filecreate_typechooser.h"
-class KPopupMenu;
+class TDEPopupMenu;
namespace FileCreate {
class Widget;
@@ -92,7 +92,7 @@ public slots:
void slotNewFile();
/**
- * Called from KToolBarPopupMenu to request a new file action
+ * Called from TDEToolBarPopupMenu to request a new file action
* @param pFileType is acutally a pointer to FileType
*/
void slotNewFilePopup(int pFileType);
@@ -137,8 +137,8 @@ private:
ConfigWidgetProxy * _configProxy;
- KPopupMenu* m_newPopupMenu;
- TQPtrList<KPopupMenu>* m_subPopups;
+ TDEPopupMenu* m_newPopupMenu;
+ TQPtrList<TDEPopupMenu>* m_subPopups;
};
diff --git a/parts/filecreate/filecreate_widget3.cpp b/parts/filecreate/filecreate_widget3.cpp
index 2bc308b6..9226edf4 100644
--- a/parts/filecreate/filecreate_widget3.cpp
+++ b/parts/filecreate/filecreate_widget3.cpp
@@ -30,7 +30,7 @@
namespace FileCreate {
ListWidget::ListWidget(FileCreatePart *part)
- : KListView(0, "KDevFileCreate"), TypeChooser(part)
+ : TDEListView(0, "KDevFileCreate"), TypeChooser(part)
{
setIcon( SmallIcon("filenew2") );
setCaption(i18n("File Create"));
@@ -82,7 +82,7 @@ namespace FileCreate {
li->prepareResize();
li = dynamic_cast<ListItem*>(li->nextSibling());
}
- KListView::resizeEvent(event);
+ TDEListView::resizeEvent(event);
}
void ListWidget::refresh() {
diff --git a/parts/filecreate/filecreate_widget3.h b/parts/filecreate/filecreate_widget3.h
index cdc2e499..863e3d73 100644
--- a/parts/filecreate/filecreate_widget3.h
+++ b/parts/filecreate/filecreate_widget3.h
@@ -27,7 +27,7 @@ namespace FileCreate {
class FileType;
- class ListWidget : public KListView, public TypeChooser
+ class ListWidget : public TDEListView, public TypeChooser
{
Q_OBJECT