diff options
Diffstat (limited to 'kbabel')
-rw-r--r-- | kbabel/catalogmanager/catalogmanagerview.cpp | 4 | ||||
-rw-r--r-- | kbabel/catalogmanager/findinfilesdialog.cpp | 2 | ||||
-rw-r--r-- | kbabel/common/catalog.cpp | 6 | ||||
-rw-r--r-- | kbabel/common/catalogsettings.h | 2 | ||||
-rw-r--r-- | kbabel/common/kbproject.cpp | 2 | ||||
-rw-r--r-- | kbabel/commonui/finddialog.cpp | 4 | ||||
-rw-r--r-- | kbabel/commonui/projectprefwidgets.cpp | 40 | ||||
-rw-r--r-- | kbabel/commonui/roughtransdlg.cpp | 2 | ||||
-rw-r--r-- | kbabel/kbabel/gotodialog.cpp | 2 | ||||
-rw-r--r-- | kbabel/kbabel/mymultilineedit.cpp | 2 | ||||
-rw-r--r-- | kbabel/kbabeldict/kbabeldictbox.cpp | 4 |
11 files changed, 35 insertions, 35 deletions
diff --git a/kbabel/catalogmanager/catalogmanagerview.cpp b/kbabel/catalogmanager/catalogmanagerview.cpp index d81e1b23..8eed87f5 100644 --- a/kbabel/catalogmanager/catalogmanagerview.cpp +++ b/kbabel/catalogmanager/catalogmanagerview.cpp @@ -2507,7 +2507,7 @@ void CatalogManagerView::showEvent(TQShowEvent*) void CatalogManagerView::contentsMousePressEvent(TQMouseEvent* event) { - if(event->button() == Qt::LeftButton) + if(event->button() == TQt::LeftButton) _pressPos=event->pos(); TQListView::contentsMousePressEvent( event ); @@ -2515,7 +2515,7 @@ void CatalogManagerView::contentsMousePressEvent(TQMouseEvent* event) void CatalogManagerView::contentsMouseMoveEvent(TQMouseEvent* event) { - if(event->state() & Qt::LeftButton) + if(event->state() & TQt::LeftButton) { const int delay = TDEGlobalSettings::dndEventDelay(); if(TQABS( event->pos().x() - _pressPos.x() ) >= delay || diff --git a/kbabel/catalogmanager/findinfilesdialog.cpp b/kbabel/catalogmanager/findinfilesdialog.cpp index 66926de2..401e63e8 100644 --- a/kbabel/catalogmanager/findinfilesdialog.cpp +++ b/kbabel/catalogmanager/findinfilesdialog.cpp @@ -47,7 +47,7 @@ using namespace KBabel; FindInFilesDialog::FindInFilesDialog(bool forReplace, TQWidget* parent) :FindDialog(forReplace, parent) { - TQGroupBox* box = new TQGroupBox(2, Qt::Horizontal, i18n("File Options"), mainWidget()); + TQGroupBox* box = new TQGroupBox(2, TQt::Horizontal, i18n("File Options"), mainWidget()); mainWidget()->layout()->add(box); _inAllFiles = new TQCheckBox(i18n("&In all files"),box); diff --git a/kbabel/common/catalog.cpp b/kbabel/common/catalog.cpp index a3c4fdcd..fcf50750 100644 --- a/kbabel/common/catalog.cpp +++ b/kbabel/common/catalog.cpp @@ -1807,12 +1807,12 @@ TQString Catalog::dateTime() const switch(options.dateFormat) { - case Qt::LocalDate: + case TQt::LocalDate: { dateTimeString = TDEGlobal::locale()->formatDateTime( dt ); break; } - case Qt::ISODate: + case TQt::ISODate: { dateTimeString = dt.toString("yyyy-MM-dd hh:mm"); TQTime t; @@ -1823,7 +1823,7 @@ TQString Catalog::dateTime() const dateTimeString += t.toString("hhmm"); break; } - case Qt::TextDate: + case TQt::TextDate: { dateTimeString = options.customDateFormat; diff --git a/kbabel/common/catalogsettings.h b/kbabel/common/catalogsettings.h index f1426a3c..552f88c5 100644 --- a/kbabel/common/catalogsettings.h +++ b/kbabel/common/catalogsettings.h @@ -63,7 +63,7 @@ struct KDE_EXPORT SaveSettings int encoding; bool useOldEncoding; - Qt::DateFormat dateFormat; + TQt::DateFormat dateFormat; TQString customDateFormat; TQString projectString; diff --git a/kbabel/common/kbproject.cpp b/kbabel/common/kbproject.cpp index 35ce08a5..cdd99b05 100644 --- a/kbabel/common/kbproject.cpp +++ b/kbabel/common/kbproject.cpp @@ -250,7 +250,7 @@ SaveSettings Project::saveSettings () settings.autoSyntaxCheck = _settings->autoSyntaxCheck(); settings.saveObsolete = _settings->saveObsolete(); settings.customDateFormat = _settings->customDateFormat(); - settings.dateFormat = (Qt::DateFormat)_settings->dateFormat(); + settings.dateFormat = (TQt::DateFormat)_settings->dateFormat(); settings.updateDescription = _settings->updateDescription(); settings.descriptionString = _settings->descriptionString(); settings.updateTranslatorCopyright = _settings->updateTranslatorCopyright(); diff --git a/kbabel/commonui/finddialog.cpp b/kbabel/commonui/finddialog.cpp index 34b63685..4f695fb4 100644 --- a/kbabel/commonui/finddialog.cpp +++ b/kbabel/commonui/finddialog.cpp @@ -105,7 +105,7 @@ FindDialog::FindDialog(bool forReplace, TQWidget* parent) _replaceCombo=0; } - _buttonGrp = new TQButtonGroup(3, Qt::Horizontal, i18n("Where to Search"), page); + _buttonGrp = new TQButtonGroup(3, TQt::Horizontal, i18n("Where to Search"), page); connect(_buttonGrp,TQT_SIGNAL(clicked(int)), this, TQT_SLOT(inButtonsClicked(int))); layout->addWidget(_buttonGrp); @@ -118,7 +118,7 @@ FindDialog::FindDialog(bool forReplace, TQWidget* parent) "to search.</p></qt>")); - TQGroupBox* box = new TQGroupBox(2, Qt::Horizontal, i18n("Options"), page); + TQGroupBox* box = new TQGroupBox(2, TQt::Horizontal, i18n("Options"), page); layout->addWidget(box); _caseSensitive = new TQCheckBox(i18n("C&ase sensitive"),box); diff --git a/kbabel/commonui/projectprefwidgets.cpp b/kbabel/commonui/projectprefwidgets.cpp index 2b5becb3..203d28c0 100644 --- a/kbabel/commonui/projectprefwidgets.cpp +++ b/kbabel/commonui/projectprefwidgets.cpp @@ -131,7 +131,7 @@ SavePreferences::SavePreferences(TQWidget *parent) layout->setSpacing(KDialog::spacingHint()); layout->setMargin(KDialog::marginHint()); - TQGroupBox* box=new TQGroupBox(1,Qt::Horizontal,page); + TQGroupBox* box=new TQGroupBox(1,TQt::Horizontal,page); layout->addWidget(box); box->setMargin(KDialog::marginHint()); @@ -140,13 +140,13 @@ SavePreferences::SavePreferences(TQWidget *parent) _autoCheckButton = new TQCheckBox(i18n("Chec&k syntax of file when saving"),box, "kcfg_AutoSyntaxCheck"); _saveObsoleteButton = new TQCheckBox(i18n("Save &obsolete entries"),box, "kcfg_SaveObsolete"); - TQGroupBox* descBox=new TQGroupBox(1,Qt::Horizontal,i18n("De&scription"),page); + TQGroupBox* descBox=new TQGroupBox(1,TQt::Horizontal,i18n("De&scription"),page); layout->addWidget(descBox); descBox->setMargin(KDialog::marginHint()); _descriptionEdit = new TQLineEdit(descBox, "kcfg_DescriptionString"); - TQGroupBox* encodingBox = new TQGroupBox(1,Qt::Horizontal,i18n("Encoding") + TQGroupBox* encodingBox = new TQGroupBox(1,TQt::Horizontal,i18n("Encoding") ,page); encodingBox->setMargin(KDialog::marginHint()); layout->addWidget(encodingBox); @@ -175,7 +175,7 @@ SavePreferences::SavePreferences(TQWidget *parent) _oldEncodingButton = new TQCheckBox(i18n("Kee&p the encoding of the file") ,encodingBox, "kcfg_UseOldEncoding"); - _autoSaveBox = new TQGroupBox( 1, Qt::Horizontal, i18n( "Automatic Saving" ), page ); + _autoSaveBox = new TQGroupBox( 1, TQt::Horizontal, i18n( "Automatic Saving" ), page ); _autoSaveBox->setMargin( KDialog::marginHint( ) ); layout->addWidget( _autoSaveBox ); _autoSaveDelay = new KIntNumInput( _autoSaveBox, "kcfg_AutoSaveDelay" ); @@ -192,7 +192,7 @@ SavePreferences::SavePreferences(TQWidget *parent) layout->setSpacing(KDialog::spacingHint()); layout->setMargin(KDialog::marginHint()); - TQGroupBox* gridBox = new TQGroupBox(2,Qt::Horizontal,i18n("Fields to Update"),page); + TQGroupBox* gridBox = new TQGroupBox(2,TQt::Horizontal,i18n("Fields to Update"),page); layout->addWidget(gridBox); gridBox->setMargin(KDialog::marginHint()); @@ -203,7 +203,7 @@ SavePreferences::SavePreferences(TQWidget *parent) _encodingButton = new TQCheckBox(i18n("&Encoding"),gridBox, "kcfg_UpdateEncoding"); _projectButton = new TQCheckBox(i18n("Pro&ject"),gridBox, "kcfg_UpdateProject"); - TQButtonGroup* dateBox = new TQButtonGroup(2,Qt::Horizontal,i18n("Format of Revision-Date"),page, "kcfg_DateFormat"); + TQButtonGroup* dateBox = new TQButtonGroup(2,TQt::Horizontal,i18n("Format of Revision-Date"),page, "kcfg_DateFormat"); layout->addWidget(dateBox); box->setMargin(KDialog::marginHint()); @@ -222,7 +222,7 @@ SavePreferences::SavePreferences(TQWidget *parent) connect( _customDateButton, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT( customDateActivated(bool) ) ); - TQGroupBox* projectBox = new TQGroupBox(1,Qt::Horizontal,i18n("Project String") + TQGroupBox* projectBox = new TQGroupBox(1,TQt::Horizontal,i18n("Project String") ,page); projectBox->setMargin(KDialog::marginHint()); layout->addWidget(projectBox); @@ -243,14 +243,14 @@ SavePreferences::SavePreferences(TQWidget *parent) layout->setSpacing(KDialog::spacingHint()); layout->setMargin(KDialog::marginHint()); - TQGroupBox* translatorCopyrightBox = new TQGroupBox(1,Qt::Horizontal, page); + TQGroupBox* translatorCopyrightBox = new TQGroupBox(1,TQt::Horizontal, page); translatorCopyrightBox->setMargin(KDialog::marginHint()); _translatorCopyrightButton = new TQCheckBox(i18n("Update &translator copyright") ,translatorCopyrightBox, "kcfg_UpdateTranslatorCopyright"); layout->addWidget(translatorCopyrightBox); - TQGroupBox* fsfBox=new TQButtonGroup(1,Qt::Horizontal,i18n("Free Software Foundation Copyright"),page, "kcfg_FSFCopyright"); + TQGroupBox* fsfBox=new TQButtonGroup(1,TQt::Horizontal,i18n("Free Software Foundation Copyright"),page, "kcfg_FSFCopyright"); layout->addWidget(fsfBox); fsfBox->setMargin(KDialog::marginHint()); @@ -369,13 +369,13 @@ void SavePreferences::defaults(const KBabel::SaveSettings& _settings) switch(_settings.dateFormat) { - case Qt::ISODate: + case TQt::ISODate: _defaultDateButton->setChecked(true); break; - case Qt::LocalDate: + case TQt::LocalDate: _localDateButton->setChecked(true); break; - case Qt::TextDate: + case TQt::TextDate: _customDateButton->setChecked(true); break; } @@ -412,7 +412,7 @@ IdentityPreferences::IdentityPreferences(TQWidget* parent, const TQString& proje layout->addWidget(new TQLabel(i18n("<font size=\"+1\">Project: %1</font>").arg(project),page)); } - TQGroupBox* group = new TQGroupBox(2,Qt::Horizontal,page); + TQGroupBox* group = new TQGroupBox(2,TQt::Horizontal,page); layout->addWidget(group); group->setMargin(KDialog::marginHint()); @@ -461,7 +461,7 @@ IdentityPreferences::IdentityPreferences(TQWidget* parent, const TQString& proje TQWhatsThis::add(group,whatsThisMsg); - group = new TQGroupBox(1,Qt::Horizontal,page); + group = new TQGroupBox(1,TQt::Horizontal,page); layout->addWidget(group); group->setMargin(KDialog::marginHint()); @@ -667,7 +667,7 @@ MiscPreferences::MiscPreferences(TQWidget *parent) layout->setSpacing(KDialog::spacingHint()); layout->setMargin(KDialog::marginHint()); - TQGroupBox* box=new TQGroupBox(1,Qt::Horizontal,page); + TQGroupBox* box=new TQGroupBox(1,TQt::Horizontal,page); box->setMargin(KDialog::marginHint()); layout->addWidget(box); @@ -883,7 +883,7 @@ CatmanPreferences::CatmanPreferences(TQWidget* parent) layout->setSpacing(KDialog::spacingHint()); layout->setMargin(KDialog::marginHint()); - TQGroupBox* box=new TQGroupBox(1,Qt::Horizontal,page); + TQGroupBox* box=new TQGroupBox(1,TQt::Horizontal,page); box->setMargin(KDialog::marginHint()); layout->addWidget(box); @@ -917,7 +917,7 @@ CatmanPreferences::CatmanPreferences(TQWidget* parent) "tree.</p></qt>")); - box=new TQGroupBox(1,Qt::Horizontal,page); + box=new TQGroupBox(1,TQt::Horizontal,page); box->setMargin(KDialog::marginHint()); layout->addWidget(box); @@ -985,7 +985,7 @@ DirCommandsPreferences::DirCommandsPreferences(TQWidget* parent) layout->setSpacing(KDialog::spacingHint()); layout->setMargin(KDialog::marginHint()); - TQGroupBox* box = new TQGroupBox( 1 , Qt::Horizontal , i18n("Commands for Folders") , page ); + TQGroupBox* box = new TQGroupBox( 1 , TQt::Horizontal , i18n("Commands for Folders") , page ); box->setMargin( KDialog::marginHint() ); layout->addWidget( box ); @@ -1048,7 +1048,7 @@ FileCommandsPreferences::FileCommandsPreferences(TQWidget* parent) layout->setSpacing(KDialog::spacingHint()); layout->setMargin(KDialog::marginHint()); - TQGroupBox* box=new TQGroupBox( 1 , Qt::Horizontal , i18n("Commands for Files") , page ); + TQGroupBox* box=new TQGroupBox( 1 , TQt::Horizontal , i18n("Commands for Files") , page ); box->setMargin( KDialog::marginHint() ); layout->addWidget( box ); @@ -1111,7 +1111,7 @@ ViewPreferences::ViewPreferences(TQWidget* parent) layout->setSpacing(KDialog::spacingHint()); layout->setMargin(KDialog::marginHint()); - TQGroupBox* box=new TQGroupBox(2, Qt::Horizontal,i18n("Shown Columns"),page); + TQGroupBox* box=new TQGroupBox(2, TQt::Horizontal,i18n("Shown Columns"),page); box->setMargin(KDialog::marginHint()); layout->addWidget(box); diff --git a/kbabel/commonui/roughtransdlg.cpp b/kbabel/commonui/roughtransdlg.cpp index 677b68ee..654bee27 100644 --- a/kbabel/commonui/roughtransdlg.cpp +++ b/kbabel/commonui/roughtransdlg.cpp @@ -77,7 +77,7 @@ RoughTransDlg::RoughTransDlg(KBabelDictBox *dict, Catalog *cat ,partTransCounter(0) ,totalTried(0) { - setButtonBoxOrientation(Qt::Vertical); + setButtonBoxOrientation(TQt::Vertical); setButtonText(User1,i18n("&Start")); setButtonText(User2,i18n("S&top")); setButtonText(User3,i18n("C&ancel")); diff --git a/kbabel/kbabel/gotodialog.cpp b/kbabel/kbabel/gotodialog.cpp index ff5d1df5..50dcedd4 100644 --- a/kbabel/kbabel/gotodialog.cpp +++ b/kbabel/kbabel/gotodialog.cpp @@ -40,7 +40,7 @@ GotoDialog::GotoDialog(int max,TQWidget* parent) : KDialogBase(parent,0,true,i18n("Go to Entry"),Ok|Cancel) { - TQGroupBox* box=new TQGroupBox(1,Qt::Horizontal,i18n("Go to Entry"),this); + TQGroupBox* box=new TQGroupBox(1,TQt::Horizontal,i18n("Go to Entry"),this); _spinBox= new KIntSpinBox(1,max,1,1,10,box); setMainWidget(box); diff --git a/kbabel/kbabel/mymultilineedit.cpp b/kbabel/kbabel/mymultilineedit.cpp index ea46b9ac..3d614f68 100644 --- a/kbabel/kbabel/mymultilineedit.cpp +++ b/kbabel/kbabel/mymultilineedit.cpp @@ -1252,7 +1252,7 @@ void MsgMultiLineEdit::highlight() { TQColor c; TQFont f; - Qt::VerticalAlignment v; + TQt::VerticalAlignment v; getFormat(_firstChangedLine-1, paragraphLength(_firstChangedLine-1)-1, &f, &c, &v); TQString l = text(_firstChangedLine-1); if( c==_tagColor && !l.endsWith(">") ) // hope _tagColor will be different than other colors diff --git a/kbabel/kbabeldict/kbabeldictbox.cpp b/kbabel/kbabeldict/kbabeldictbox.cpp index bb0b108c..d1d8dafd 100644 --- a/kbabel/kbabeldict/kbabeldictbox.cpp +++ b/kbabel/kbabeldict/kbabeldictbox.cpp @@ -265,11 +265,11 @@ KBabelDictBox::KBabelDictBox( TQWidget* parent, const char* name, WFlags fl ) mainLayout->addLayout(hbox); - resultSplitter = new TQSplitter(Qt::Vertical,this + resultSplitter = new TQSplitter(TQt::Vertical,this ,"resultsplitter"); mainLayout->addWidget(resultSplitter); - viewContainer = new TQSplitter(Qt::Vertical,resultSplitter, "singleEntrySplitter"); + viewContainer = new TQSplitter(TQt::Vertical,resultSplitter, "singleEntrySplitter"); TQVBoxLayout *vbox = new TQVBoxLayout(viewContainer); vbox->setResizeMode(TQLayout::FreeResize); origView = new TQTextView(viewContainer,"origView"); |