summaryrefslogtreecommitdiffstats
path: root/tdeprint/kprintdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdeprint/kprintdialog.cpp')
-rw-r--r--tdeprint/kprintdialog.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/tdeprint/kprintdialog.cpp b/tdeprint/kprintdialog.cpp
index 9df774510..18e5f8628 100644
--- a/tdeprint/kprintdialog.cpp
+++ b/tdeprint/kprintdialog.cpp
@@ -262,7 +262,7 @@ KPrintDialog::KPrintDialog(TQWidget *parent, const char *name)
setCaption(i18n("Print"));
// widget creation
- TQGroupBox *m_pbox = new TQGroupBox(0,Qt::Vertical,i18n("Printer"), this);
+ TQGroupBox *m_pbox = new TQGroupBox(0,TQt::Vertical,i18n("Printer"), this);
d->m_type = new TQLabel(m_pbox);
TQWhatsThis::add(d->m_type, whatsThisPrinterType);
d->m_state = new TQLabel(m_pbox);
@@ -396,23 +396,23 @@ KPrintDialog::KPrintDialog(TQWidget *parent, const char *name)
l3->addMultiCellWidget(d->m_cmd,2,2,1,2);
// connections
- connect(d->m_ok,TQT_SIGNAL(clicked()),TQT_SLOT(accept()));
- connect(m_cancel,TQT_SIGNAL(clicked()),TQT_SLOT(reject()));
- connect(d->m_properties,TQT_SIGNAL(clicked()),TQT_SLOT(slotProperties()));
- connect(d->m_default,TQT_SIGNAL(clicked()),TQT_SLOT(slotSetDefault()));
- connect(d->m_printers,TQT_SIGNAL(activated(int)),TQT_SLOT(slotPrinterSelected(int)));
- connect(d->m_options,TQT_SIGNAL(clicked()),TQT_SLOT(slotOptions()));
- connect(d->m_wizard,TQT_SIGNAL(clicked()),TQT_SLOT(slotWizard()));
- connect(d->m_extbtn, TQT_SIGNAL(clicked()), TQT_SLOT(slotExtensionClicked()));
- connect(d->m_filter, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotToggleFilter(bool)));
- connect(m_help, TQT_SIGNAL(clicked()), TQT_SLOT(slotHelp()));
- connect(d->m_file, TQT_SIGNAL(urlSelected(const TQString&)), TQT_SLOT(slotOutputFileSelected(const TQString&)));
- connect( d->m_file, TQT_SIGNAL( openFileDialog( KURLRequester* ) ), TQT_SLOT( slotOpenFileDialog() ) );
- connect( KMFactory::self()->manager(), TQT_SIGNAL( updatePossible( bool ) ), TQT_SLOT( slotUpdatePossible( bool ) ) );
-
- d->b_optionsEnabled = kapp->authorize("print/options") && kapp->authorize("print/selection");
- d->b_propertiesEnabled = kapp->authorize("print/properties") && kapp->authorize("print/selection");
- d->b_systemEnabled = kapp->authorize("print/system") && kapp->authorize("print/selection");
+ connect(d->m_ok,TQ_SIGNAL(clicked()),TQ_SLOT(accept()));
+ connect(m_cancel,TQ_SIGNAL(clicked()),TQ_SLOT(reject()));
+ connect(d->m_properties,TQ_SIGNAL(clicked()),TQ_SLOT(slotProperties()));
+ connect(d->m_default,TQ_SIGNAL(clicked()),TQ_SLOT(slotSetDefault()));
+ connect(d->m_printers,TQ_SIGNAL(activated(int)),TQ_SLOT(slotPrinterSelected(int)));
+ connect(d->m_options,TQ_SIGNAL(clicked()),TQ_SLOT(slotOptions()));
+ connect(d->m_wizard,TQ_SIGNAL(clicked()),TQ_SLOT(slotWizard()));
+ connect(d->m_extbtn, TQ_SIGNAL(clicked()), TQ_SLOT(slotExtensionClicked()));
+ connect(d->m_filter, TQ_SIGNAL(toggled(bool)), TQ_SLOT(slotToggleFilter(bool)));
+ connect(m_help, TQ_SIGNAL(clicked()), TQ_SLOT(slotHelp()));
+ connect(d->m_file, TQ_SIGNAL(urlSelected(const TQString&)), TQ_SLOT(slotOutputFileSelected(const TQString&)));
+ connect( d->m_file, TQ_SIGNAL( openFileDialog( KURLRequester* ) ), TQ_SLOT( slotOpenFileDialog() ) );
+ connect( KMFactory::self()->manager(), TQ_SIGNAL( updatePossible( bool ) ), TQ_SLOT( slotUpdatePossible( bool ) ) );
+
+ d->b_optionsEnabled = tdeApp->authorize("print/options") && tdeApp->authorize("print/selection");
+ d->b_propertiesEnabled = tdeApp->authorize("print/properties") && tdeApp->authorize("print/selection");
+ d->b_systemEnabled = tdeApp->authorize("print/system") && tdeApp->authorize("print/selection");
if (!d->b_systemEnabled)
{
@@ -430,7 +430,7 @@ KPrintDialog::KPrintDialog(TQWidget *parent, const char *name)
d->m_wizard->hide();
}
- if (!kapp->authorize("print/selection"))
+ if (!tdeApp->authorize("print/selection"))
{
d->m_extbtn->hide();
m_pbox->hide();
@@ -484,12 +484,12 @@ void KPrintDialog::setDialogPages(TQPtrList<KPrintDialogPage> *pages)
d->m_pages.append(pages->take(0));
d->m_pages.first()->reparent(d->m_dummy, TQPoint(0,0));
d->m_pages.first()->show();
- delete d->m_dummy->child("TabWidget", TQTABWIDGET_OBJECT_NAME_STRING);
+ delete d->m_dummy->child("TabWidget", "TQTabWidget");
}
else
{
// more than one page.
- TQTabWidget *tabs = static_cast<TQTabWidget*>(TQT_TQWIDGET(d->m_dummy->child("TabWidget", TQTABWIDGET_OBJECT_NAME_STRING)));
+ TQTabWidget *tabs = static_cast<TQTabWidget*>(d->m_dummy->child("TabWidget", "TQTabWidget"));
if (!tabs)
{
// TQTabWidget doesn't exist. Create it and reparent all
@@ -554,7 +554,7 @@ void KPrintDialog::initialize(KPrinter *printer)
if (plist)
{
- QString oldP = d->m_printers->currentText();
+ TQString oldP = d->m_printers->currentText();
d->m_printers->clear();
TQPtrListIterator<KMPrinter> it(*plist);
int defsoft(-1), defhard(-1), defsearch(-1);
@@ -822,7 +822,7 @@ void KPrintDialog::slotWizard()
void KPrintDialog::reload()
{
// remove printer dependent pages (usually from plugin)
- TQTabWidget *tabs = static_cast<TQTabWidget*>(TQT_TQWIDGET(d->m_dummy->child("TabWidget", TQTABWIDGET_OBJECT_NAME_STRING)));
+ TQTabWidget *tabs = static_cast<TQTabWidget*>(d->m_dummy->child("TabWidget", "TQTabWidget"));
for (uint i=0; i<d->m_pages.count(); i++)
if (d->m_pages.at(i)->onlyRealPrinters())
{
@@ -841,7 +841,7 @@ void KPrintDialog::reload()
d->m_dummy->show();
// other initializations
setFlags(KMFactory::self()->uiManager()->dialogFlags());
- connect( KMFactory::self()->manager(), TQT_SIGNAL( updatePossible( bool ) ), TQT_SLOT( slotUpdatePossible( bool ) ) );
+ connect( KMFactory::self()->manager(), TQ_SIGNAL( updatePossible( bool ) ), TQ_SLOT( slotUpdatePossible( bool ) ) );
init();
}
@@ -914,7 +914,7 @@ void KPrintDialog::slotToggleFilter(bool on)
void KPrintDialog::slotHelp()
{
- kapp->invokeHelp(TQString::null, "tdeprint");
+ tdeApp->invokeHelp(TQString::null, "tdeprint");
}
void KPrintDialog::slotOutputFileSelected(const TQString& txt)
@@ -951,7 +951,7 @@ void KPrintDialog::enableDialogPage( int index, bool flag )
if ( d->m_pages.count() > 1 )
{
- TQTabWidget *tabs = static_cast<TQTabWidget*>(TQT_TQWIDGET(d->m_dummy->child("TabWidget", TQTABWIDGET_OBJECT_NAME_STRING)));
+ TQTabWidget *tabs = static_cast<TQTabWidget*>(d->m_dummy->child("TabWidget", "TQTabWidget"));
tabs->setTabEnabled( d->m_pages.at( index ), flag );
}
else
@@ -969,8 +969,8 @@ void KPrintDialog::slotOpenFileDialog()
KMPrinter *prt = KMFactory::self()->manager()->findPrinter(d->m_printers->currentText());
if (prt)
{
- QString mimetype(prt->option("kde-special-mimetype"));
- QString ext(prt->option("kde-special-extension"));
+ TQString mimetype(prt->option("kde-special-mimetype"));
+ TQString ext(prt->option("kde-special-extension"));
if (!mimetype.isEmpty())
{