summaryrefslogtreecommitdiffstats
path: root/parts/filecreate/filecreate_widget2.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /parts/filecreate/filecreate_widget2.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/filecreate/filecreate_widget2.cpp')
-rw-r--r--parts/filecreate/filecreate_widget2.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/parts/filecreate/filecreate_widget2.cpp b/parts/filecreate/filecreate_widget2.cpp
index c8e6d051..10816904 100644
--- a/parts/filecreate/filecreate_widget2.cpp
+++ b/parts/filecreate/filecreate_widget2.cpp
@@ -8,9 +8,9 @@
* (at your option) any later version. *
***************************************************************************/
-#include <qptrlist.h>
-#include <qtimer.h>
-#include <qwhatsthis.h>
+#include <tqptrlist.h>
+#include <tqtimer.h>
+#include <tqwhatsthis.h>
#include <kparts/part.h>
#include <klibloader.h>
@@ -30,7 +30,7 @@
namespace FileCreate {
FriendlyWidget::FriendlyWidget(FileCreatePart *part)
- : QTable(0,4,0), TypeChooser(part), m_selected(NULL)
+ : TQTable(0,4,0), TypeChooser(part), m_selected(NULL)
{
setReadOnly(true);
@@ -45,7 +45,7 @@ namespace FileCreate {
m_iconLoader = KGlobal::iconLoader();
- QWhatsThis::add(this, i18n("Use this to create new files within your project."));
+ TQWhatsThis::add(this, i18n("Use this to create new files within your project."));
setDefaultColumnWidths();
@@ -58,7 +58,7 @@ namespace FileCreate {
void FriendlyWidget::setCurrent(const FileType * current) {
int changeToRow = -1;
- QMap<int,FileType*>::Iterator it;
+ TQMap<int,FileType*>::Iterator it;
kdDebug(9034) << "Checking " << current->descr() << " for matches in row..." << endl;
for ( it = typeForRow.begin(); it != typeForRow.end() && changeToRow==-1; ++it ) {
kdDebug(9034) << "Checking: " << it.data()->descr() << endl;
@@ -88,12 +88,12 @@ namespace FileCreate {
void FriendlyWidget::refresh() {
- disconnect( this, SIGNAL(currentChanged(int,int)), this, SLOT(slotCellSelected(int,int)) );
+ disconnect( this, TQT_SIGNAL(currentChanged(int,int)), this, TQT_SLOT(slotCellSelected(int,int)) );
empty();
int row = 0;
- QPtrList<FileType> filetypes = m_part->getFileTypes();
+ TQPtrList<FileType> filetypes = m_part->getFileTypes();
for(FileType * filetype = filetypes.first();
filetype;
filetype=filetypes.next()) {
@@ -103,7 +103,7 @@ namespace FileCreate {
if (filetype->subtypes().count()==0)
setRow(row++, filetype);
- QPtrList<FileType> subtypes = filetype->subtypes();
+ TQPtrList<FileType> subtypes = filetype->subtypes();
for(FileType * subtype = subtypes.first();
subtype;
subtype=subtypes.next()) {
@@ -117,7 +117,7 @@ namespace FileCreate {
resizeCells();
if (currentSelection()>-1) removeSelection(currentSelection());
- connect( this, SIGNAL(currentChanged(int,int)), this, SLOT(slotCellSelected(int,int)) );
+ connect( this, TQT_SIGNAL(currentChanged(int,int)), this, TQT_SLOT(slotCellSelected(int,int)) );
}
@@ -130,7 +130,7 @@ namespace FileCreate {
item(row,1)->setWordWrap(true);
item(row,3)->setWordWrap(true);
//setRowStretchable(row,true);
- QPixmap iconPix = m_iconLoader->loadIcon(filetype->icon(), KIcon::Desktop, KIcon::SizeMedium,
+ TQPixmap iconPix = m_iconLoader->loadIcon(filetype->icon(), KIcon::Desktop, KIcon::SizeMedium,
KIcon::DefaultState, NULL,
true);
if (!iconPix.isNull()) {
@@ -165,7 +165,7 @@ namespace FileCreate {
}
m_selected = typeForRow.contains(row) ? typeForRow[row] : NULL;
- QTimer::singleShot(0, this, SLOT(slotDoSelection()) );
+ TQTimer::singleShot(0, this, TQT_SLOT(slotDoSelection()) );
}
@@ -187,11 +187,11 @@ namespace FileCreate {
int maxHeight = 0;
for(int c=0;c<numCols();c++) {
- QTableItem* i = item( row, c );
+ TQTableItem* i = item( row, c );
if( !i )
continue;
- QSize size = i->sizeHint();
+ TQSize size = i->sizeHint();
maxHeight = size.height()>maxHeight ? size.height() : maxHeight;
}
setRowHeight(row,maxHeight+2); // bit of extra room
@@ -202,11 +202,11 @@ namespace FileCreate {
int maxWidth = 0;
for(int r=0;r<numRows();r++) {
- QTableItem* i = item( r, col );
+ TQTableItem* i = item( r, col );
if( !i )
continue;
- QSize size = item(r,col)->sizeHint();
+ TQSize size = item(r,col)->sizeHint();
maxWidth = size.width()>maxWidth ? size.width() : maxWidth;
}
setColumnWidth(col,maxWidth+2); // bit of extra room
@@ -215,7 +215,7 @@ namespace FileCreate {
#if QT_VERSION < 0x030100
void FriendlyWidget::selectRow(int row) {
if (numCols()>0 && row<numRows()) {
- QTableSelection sel;
+ TQTableSelection sel;
sel.init(row,0);
sel.expandTo(row,numCols());
addSelection(sel);