diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kspread/dialogs/kspread_dlg_showColRow.cc | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kspread/dialogs/kspread_dlg_showColRow.cc')
-rw-r--r-- | kspread/dialogs/kspread_dlg_showColRow.cc | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/kspread/dialogs/kspread_dlg_showColRow.cc b/kspread/dialogs/kspread_dlg_showColRow.cc index 908d8bbc..0a8ea14d 100644 --- a/kspread/dialogs/kspread_dlg_showColRow.cc +++ b/kspread/dialogs/kspread_dlg_showColRow.cc @@ -20,8 +20,8 @@ * Boston, MA 02110-1301, USA. */ -#include <qlabel.h> -#include <qlayout.h> +#include <tqlabel.h> +#include <tqlayout.h> #include <klocale.h> @@ -35,17 +35,17 @@ using namespace KSpread; -ShowColRow::ShowColRow( View* parent, const char* name, Type _type ) - : KDialogBase( parent, name,TRUE,"",Ok|Cancel ) +ShowColRow::ShowColRow( View* tqparent, const char* name, Type _type ) + : KDialogBase( tqparent, name,TRUE,"",Ok|Cancel ) { - m_pView = parent; + m_pView = tqparent; typeShow=_type; - QWidget *page = new QWidget( this ); + TQWidget *page = new TQWidget( this ); setMainWidget(page); - QVBoxLayout *lay1 = new QVBoxLayout( page, 0, spacingHint() ); + TQVBoxLayout *lay1 = new TQVBoxLayout( page, 0, spacingHint() ); - QLabel *label = new QLabel( page ); + TQLabel *label = new TQLabel( page ); if(_type==Column) { setCaption( i18n("Show Columns") ); @@ -56,7 +56,7 @@ ShowColRow::ShowColRow( View* parent, const char* name, Type _type ) label->setText(i18n("Select hidden rows to show:")); } - list=new QListBox(page); + list=new TQListBox(page); lay1->addWidget( label ); lay1->addWidget( list ); @@ -66,21 +66,21 @@ ShowColRow::ShowColRow( View* parent, const char* name, Type _type ) { ColumnFormat *col=m_pView->activeSheet()->firstCol(); - QString text; - QStringList listCol; + TQString text; + TQStringList listCol; for( ; col; col = col->next() ) { if(col->isHide()) listInt.append(col->column()); } qHeapSort(listInt); - QValueList<int>::Iterator it; + TQValueList<int>::Iterator it; for( it = listInt.begin(); it != listInt.end(); ++it ) { if(!showColNumber) - listCol+=i18n("Column: %1").arg(Cell::columnName(*it)); + listCol+=i18n("Column: %1").tqarg(Cell::columnName(*it)); else - listCol+=i18n("Column: %1").arg(text.setNum(*it)); + listCol+=i18n("Column: %1").tqarg(text.setNum(*it)); } list->insertStringList(listCol); } @@ -88,17 +88,17 @@ ShowColRow::ShowColRow( View* parent, const char* name, Type _type ) { RowFormat *row=m_pView->activeSheet()->firstRow(); - QString text; - QStringList listRow; + TQString text; + TQStringList listRow; for( ; row; row = row->next() ) { if(row->isHide()) listInt.append(row->row()); } qHeapSort(listInt); - QValueList<int>::Iterator it; + TQValueList<int>::Iterator it; for( it = listInt.begin(); it != listInt.end(); ++it ) - listRow+=i18n("Row: %1").arg(text.setNum(*it)); + listRow+=i18n("Row: %1").tqarg(text.setNum(*it)); list->insertStringList(listRow); } @@ -107,14 +107,14 @@ ShowColRow::ShowColRow( View* parent, const char* name, Type _type ) enableButtonOK(false); //selection multiple - list->setSelectionMode(QListBox::Multi); - connect( this, SIGNAL( okClicked() ), this, SLOT( slotOk() ) ); - connect( list, SIGNAL(doubleClicked(QListBoxItem *)),this,SLOT(slotDoubleClicked(QListBoxItem *))); + list->setSelectionMode(TQListBox::Multi); + connect( this, TQT_SIGNAL( okClicked() ), this, TQT_SLOT( slotOk() ) ); + connect( list, TQT_SIGNAL(doubleClicked(TQListBoxItem *)),this,TQT_SLOT(slotDoubleClicked(TQListBoxItem *))); resize( 200, 150 ); setFocus(); } -void ShowColRow::slotDoubleClicked(QListBoxItem *) +void ShowColRow::slotDoubleClicked(TQListBoxItem *) { slotOk(); } @@ -128,11 +128,11 @@ void ShowColRow::slotOk() { if (typeShow == Column) { - region.add(QRect(*listInt.at(i), 1, 1, KS_rowMax)); + region.add(TQRect(*listInt.at(i), 1, 1, KS_rowMax)); } if (typeShow == Row) { - region.add(QRect(1, *listInt.at(i), KS_colMax, 1)); + region.add(TQRect(1, *listInt.at(i), KS_colMax, 1)); } } } |