summaryrefslogtreecommitdiffstats
path: root/kspread/dialogs/kspread_dlg_show.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kspread/dialogs/kspread_dlg_show.cc')
-rw-r--r--kspread/dialogs/kspread_dlg_show.cc38
1 files changed, 19 insertions, 19 deletions
diff --git a/kspread/dialogs/kspread_dlg_show.cc b/kspread/dialogs/kspread_dlg_show.cc
index fd4ba8010..0719eb07e 100644
--- a/kspread/dialogs/kspread_dlg_show.cc
+++ b/kspread/dialogs/kspread_dlg_show.cc
@@ -22,10 +22,10 @@
* Boston, MA 02110-1301, USA.
*/
-#include <qlayout.h>
+#include <tqlayout.h>
#include <klocale.h>
-#include <qlistbox.h>
-#include <qlabel.h>
+#include <tqlistbox.h>
+#include <tqlabel.h>
#include <kcommand.h>
@@ -38,24 +38,24 @@
using namespace KSpread;
-ShowDialog::ShowDialog( View* parent, const char* name )
- : KDialogBase( parent, name,TRUE,i18n("Show Sheet"),Ok|Cancel )
+ShowDialog::ShowDialog( View* tqparent, const char* name )
+ : KDialogBase( tqparent, name,TRUE,i18n("Show Sheet"),Ok|Cancel )
{
- m_pView = parent;
- QWidget *page = new QWidget( this );
+ m_pView = tqparent;
+ 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( i18n("Select hidden sheets to show:"), page );
+ TQLabel *label = new TQLabel( i18n("Select hidden sheets to show:"), page );
lay1->addWidget( label );
- list=new QListBox(page);
+ list=new TQListBox(page);
lay1->addWidget( list );
- list->setSelectionMode(QListBox::Multi);
- QString text;
- QStringList::Iterator it;
- QStringList tabsList=m_pView->doc()->map()->hiddenSheets();
+ list->setSelectionMode(TQListBox::Multi);
+ TQString text;
+ TQStringList::Iterator it;
+ TQStringList tabsList=m_pView->doc()->map()->hiddenSheets();
for ( it = tabsList.begin(); it != tabsList.end(); ++it )
{
text=*it;
@@ -63,13 +63,13 @@ ShowDialog::ShowDialog( View* parent, const char* name )
}
if(!list->count())
enableButtonOK(false);
- connect( this, SIGNAL( okClicked() ), this, SLOT( slotOk() ) );
- connect( list, SIGNAL(doubleClicked(QListBoxItem *)),this,SLOT(slotDoubleClicked(QListBoxItem *)));
+ 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 ShowDialog::slotDoubleClicked(QListBoxItem *)
+void ShowDialog::slotDoubleClicked(TQListBoxItem *)
{
slotOk();
}
@@ -80,7 +80,7 @@ void ShowDialog::slotOk()
{
m_pView->doc()->emitBeginOperation( false );
- QStringList listSheet;
+ TQStringList listSheet;
for (int i=0; i < list->numRows(); i++)
{
@@ -97,7 +97,7 @@ void ShowDialog::slotOk()
Sheet *sheet;
KMacroCommand *macroUndo=new KMacroCommand( i18n("Show Sheet") );
- for ( QStringList::Iterator it = listSheet.begin(); it != listSheet.end(); ++it )
+ for ( TQStringList::Iterator it = listSheet.begin(); it != listSheet.end(); ++it )
{
sheet=m_pView->doc()->map()->findSheet( *it );
KCommand* command = new ShowSheetCommand( sheet );