Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 1a7a579764)
r14.1.x
Michele Calgaro 1 year ago
parent 779722e260
commit 5d52b8ff2d
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -170,7 +170,7 @@ void AnnotateController::Private::parseCvsAnnotateOutput()
{ {
TQString dateString = line.mid(23, 9); TQString dateString = line.mid(23, 9);
if( !dateString.isEmpty() ) if( !dateString.isEmpty() )
logInfo.m_dateTime.setTime_t(KRFCDate::parseDate(dateString), Qt::UTC); logInfo.m_dateTime.setTime_t(KRFCDate::parseDate(dateString), TQt::UTC);
rev = line.left(13).stripWhiteSpace(); rev = line.left(13).stripWhiteSpace();
logInfo.m_author = line.mid(14, 8).stripWhiteSpace(); logInfo.m_author = line.mid(14, 8).stripWhiteSpace();

@ -129,8 +129,8 @@ CervisiaPart::CervisiaPart( TQWidget *parentWidget, const char *widgetName,
// an explaination // an explaination
if( cvsService ) if( cvsService )
{ {
Qt::Orientation o = splitHorz ? Qt::Vertical TQt::Orientation o = splitHorz ? TQt::Vertical
: Qt::Horizontal; : TQt::Horizontal;
splitter = new TQSplitter(o, parentWidget, widgetName); splitter = new TQSplitter(o, parentWidget, widgetName);
// avoid PartManager's warning that Part's window can't handle focus // avoid PartManager's warning that Part's window can't handle focus
splitter->setFocusPolicy( TQWidget::StrongFocus ); splitter->setFocusPolicy( TQWidget::StrongFocus );
@ -1635,8 +1635,8 @@ void CervisiaPart::slotConfigure()
conf->setGroup("LookAndFeel"); conf->setGroup("LookAndFeel");
bool splitHorz = conf->readBoolEntry("SplitHorizontally",true); bool splitHorz = conf->readBoolEntry("SplitHorizontally",true);
splitter->setOrientation( splitHorz ? splitter->setOrientation( splitHorz ?
Qt::Vertical : TQt::Vertical :
Qt::Horizontal); TQt::Horizontal);
} }
void CervisiaPart::slotHelp() void CervisiaPart::slotHelp()

@ -33,7 +33,7 @@
static inline TQString DateStringISO8601() static inline TQString DateStringISO8601()
{ {
return TQDate::currentDate().toString(Qt::ISODate); return TQDate::currentDate().toString(TQt::ISODate);
} }

@ -66,7 +66,7 @@ LogDialog::LogDialog(TDEConfig& cfg, TQWidget *parent, const char *name)
, cvsService(0) , cvsService(0)
, partConfig(cfg) , partConfig(cfg)
{ {
TQSplitter *splitter = new TQSplitter(Qt::Vertical, this); TQSplitter *splitter = new TQSplitter(TQt::Vertical, this);
setMainWidget(splitter); setMainWidget(splitter);
tree = new LogTreeView(this); tree = new LogTreeView(this);

@ -169,7 +169,7 @@ void LogListView::contentsMousePressEvent(TQMouseEvent *e)
// Retrieve revision // Retrieve revision
const TQString revision = selItem->text(LogListViewItem::Revision); const TQString revision = selItem->text(LogListViewItem::Revision);
if ( e->button() == Qt::LeftButton ) if ( e->button() == TQt::LeftButton )
{ {
// If the control key was pressed, then we change revision B not A // If the control key was pressed, then we change revision B not A
if( e->state() & ControlButton ) if( e->state() & ControlButton )
@ -177,7 +177,7 @@ void LogListView::contentsMousePressEvent(TQMouseEvent *e)
else else
emit revisionClicked(revision, false); emit revisionClicked(revision, false);
} }
else if ( e->button() == Qt::MidButton ) else if ( e->button() == TQt::MidButton )
emit revisionClicked(revision, true); emit revisionClicked(revision, true);
} }

@ -69,7 +69,7 @@ void LogMessageEdit::setCompletedItems(const TQStringList&)
void LogMessageEdit::keyPressEvent(TQKeyEvent* event) void LogMessageEdit::keyPressEvent(TQKeyEvent* event)
{ {
bool noModifier = (event->state() == Qt::NoButton || bool noModifier = (event->state() == TQt::NoButton ||
event->state() == ShiftButton || event->state() == ShiftButton ||
event->state() == Keypad); event->state() == Keypad);

@ -433,8 +433,8 @@ void LogTreeView::paintRevisionCell(TQPainter *p,
void LogTreeView::contentsMousePressEvent(TQMouseEvent *e) void LogTreeView::contentsMousePressEvent(TQMouseEvent *e)
{ {
if ( e->button() == Qt::MidButton || if ( e->button() == TQt::MidButton ||
e->button() == Qt::LeftButton) e->button() == TQt::LeftButton)
{ {
int row = rowAt( e->pos().y() ); int row = rowAt( e->pos().y() );
int col = columnAt( e->pos().x() ); int col = columnAt( e->pos().x() );
@ -446,8 +446,8 @@ void LogTreeView::contentsMousePressEvent(TQMouseEvent *e)
{ {
// Change selection for revision B if the middle mouse button or // Change selection for revision B if the middle mouse button or
// the left mouse button with the control key was pressed // the left mouse button with the control key was pressed
bool changeRevB = (e->button() == Qt::MidButton) || bool changeRevB = (e->button() == TQt::MidButton) ||
(e->button() == Qt::LeftButton && (e->button() == TQt::LeftButton &&
e->state() & ControlButton); e->state() & ControlButton);
emit revisionClicked(it.current()->m_logInfo.m_revision, changeRevB); emit revisionClicked(it.current()->m_logInfo.m_revision, changeRevB);

@ -1420,7 +1420,7 @@ void QtTableView::resizeEvent( TQResizeEvent * )
void QtTableView::wheelEvent( TQWheelEvent * e ) void QtTableView::wheelEvent( TQWheelEvent * e )
{ {
if( e->orientation() ==Qt::Vertical && vScrollBar && vScrollBar->isVisible() ) if( e->orientation() ==TQt::Vertical && vScrollBar && vScrollBar->isVisible() )
TQApplication::sendEvent( vScrollBar, e ); TQApplication::sendEvent( vScrollBar, e );
} }
@ -1443,7 +1443,7 @@ TQScrollBar *QtTableView::verticalScrollBar() const
{ {
QtTableView *that = (QtTableView*)this; // semantic const QtTableView *that = (QtTableView*)this; // semantic const
if ( !vScrollBar ) { if ( !vScrollBar ) {
TQScrollBar *sb = new TQScrollBar( Qt::Vertical, that ); TQScrollBar *sb = new TQScrollBar( TQt::Vertical, that );
#ifndef TQT_NO_CURSOR #ifndef TQT_NO_CURSOR
sb->setCursor( arrowCursor ); sb->setCursor( arrowCursor );
#endif #endif
@ -1474,7 +1474,7 @@ TQScrollBar *QtTableView::horizontalScrollBar() const
{ {
QtTableView *that = (QtTableView*)this; // semantic const QtTableView *that = (QtTableView*)this; // semantic const
if ( !hScrollBar ) { if ( !hScrollBar ) {
TQScrollBar *sb = new TQScrollBar( Qt::Horizontal, that ); TQScrollBar *sb = new TQScrollBar( TQt::Horizontal, that );
#ifndef TQT_NO_CURSOR #ifndef TQT_NO_CURSOR
sb->setCursor( arrowCursor ); sb->setCursor( arrowCursor );
#endif #endif

@ -178,7 +178,7 @@ RepositoryDialog::RepositoryDialog(TDEConfig& cfg, CvsService_stub* cvsService,
connect(m_repoList, TQT_SIGNAL(selectionChanged()), connect(m_repoList, TQT_SIGNAL(selectionChanged()),
this, TQT_SLOT(slotSelectionChanged())); this, TQT_SLOT(slotSelectionChanged()));
KButtonBox* actionbox = new KButtonBox(mainWidget, Qt::Vertical); KButtonBox* actionbox = new KButtonBox(mainWidget, TQt::Vertical);
TQPushButton* addbutton = actionbox->addButton(i18n("&Add...")); TQPushButton* addbutton = actionbox->addButton(i18n("&Add..."));
m_modifyButton = actionbox->addButton(i18n("&Modify...")); m_modifyButton = actionbox->addButton(i18n("&Modify..."));
m_removeButton = actionbox->addButton(i18n("&Remove")); m_removeButton = actionbox->addButton(i18n("&Remove"));

@ -108,9 +108,9 @@ ResolveDialog::ResolveDialog(TDEConfig& cfg, TQWidget *parent, const char *name)
TQBoxLayout *layout = new TQVBoxLayout(mainWidget, 0, spacingHint()); TQBoxLayout *layout = new TQVBoxLayout(mainWidget, 0, spacingHint());
TQSplitter *vertSplitter = new TQSplitter(Qt::Vertical, mainWidget); TQSplitter *vertSplitter = new TQSplitter(TQt::Vertical, mainWidget);
TQSplitter *splitter = new TQSplitter(Qt::Horizontal, vertSplitter); TQSplitter *splitter = new TQSplitter(TQt::Horizontal, vertSplitter);
TQWidget *versionALayoutWidget = new TQWidget(splitter); TQWidget *versionALayoutWidget = new TQWidget(splitter);
TQBoxLayout *versionAlayout = new TQVBoxLayout(versionALayoutWidget, 5); TQBoxLayout *versionAlayout = new TQVBoxLayout(versionALayoutWidget, 5);

@ -262,7 +262,7 @@ void SettingsDialog::addGeneralPage()
*/ */
void SettingsDialog::addDiffPage() void SettingsDialog::addDiffPage()
{ {
TQGrid *diffPage = addGridPage(2, Qt::Horizontal, i18n("Diff Viewer"), TQGrid *diffPage = addGridPage(2, TQt::Horizontal, i18n("Diff Viewer"),
TQString(), LoadIcon("vcs_diff")); TQString(), LoadIcon("vcs_diff"));
TQLabel *contextlabel = new TQLabel( i18n("&Number of context lines in diff dialog:"), diffPage ); TQLabel *contextlabel = new TQLabel( i18n("&Number of context lines in diff dialog:"), diffPage );
@ -328,7 +328,7 @@ void SettingsDialog::addLookAndFeelPage()
TQVBox* lookPage = addVBoxPage(i18n("Appearance"), TQString(), TQVBox* lookPage = addVBoxPage(i18n("Appearance"), TQString(),
LoadIcon("preferences-desktop")); LoadIcon("preferences-desktop"));
TQGroupBox* fontGroupBox = new TQGroupBox(4, Qt::Vertical, i18n("Fonts"), TQGroupBox* fontGroupBox = new TQGroupBox(4, TQt::Vertical, i18n("Fonts"),
lookPage); lookPage);
fontGroupBox->setInsideSpacing(KDialog::spacingHint()); fontGroupBox->setInsideSpacing(KDialog::spacingHint());
@ -341,7 +341,7 @@ void SettingsDialog::addLookAndFeelPage()
m_changelogFontBox = new FontButton(i18n("Font for ChangeLog View..."), m_changelogFontBox = new FontButton(i18n("Font for ChangeLog View..."),
fontGroupBox); fontGroupBox);
TQGroupBox* colorGroupBox = new TQGroupBox(4, Qt::Horizontal, TQGroupBox* colorGroupBox = new TQGroupBox(4, TQt::Horizontal,
i18n("Colors"), lookPage); i18n("Colors"), lookPage);
colorGroupBox->setColumns(4); colorGroupBox->setColumns(4);
colorGroupBox->setInsideSpacing(KDialog::spacingHint()); colorGroupBox->setInsideSpacing(KDialog::spacingHint());

@ -359,7 +359,7 @@ void UpdateDirItem::syncWithEntries()
// const TQDateTime date(TQDateTime::fromString(timestamp)); // UTC Time // const TQDateTime date(TQDateTime::fromString(timestamp)); // UTC Time
const TQDateTime date(parseDateTime(timestamp)); // UTC Time const TQDateTime date(parseDateTime(timestamp)); // UTC Time
TQDateTime fileDateUTC; TQDateTime fileDateUTC;
fileDateUTC.setTime_t(entry.m_dateTime.toTime_t(), Qt::UTC); fileDateUTC.setTime_t(entry.m_dateTime.toTime_t(), TQt::UTC);
if (date != fileDateUTC) if (date != fileDateUTC)
entry.m_status = Cervisia::LocallyModified; entry.m_status = Cervisia::LocallyModified;
} }
@ -566,7 +566,7 @@ void UpdateFileItem::setRevTag(const TQString& rev, const TQString& tag)
// tag date. // tag date.
const unsigned int dateTimeInSeconds(tagDateTimeUtc.toTime_t()); const unsigned int dateTimeInSeconds(tagDateTimeUtc.toTime_t());
TQDateTime dateTime; TQDateTime dateTime;
dateTime.setTime_t(dateTimeInSeconds, Qt::UTC); dateTime.setTime_t(dateTimeInSeconds, TQt::UTC);
const int localUtcOffset(dateTime.secsTo(tagDateTimeUtc)); const int localUtcOffset(dateTime.secsTo(tagDateTimeUtc));
const TQDateTime tagDateTimeLocal(tagDateTimeUtc.addSecs(localUtcOffset)); const TQDateTime tagDateTimeLocal(tagDateTimeUtc.addSecs(localUtcOffset));

@ -2507,7 +2507,7 @@ void CatalogManagerView::showEvent(TQShowEvent*)
void CatalogManagerView::contentsMousePressEvent(TQMouseEvent* event) void CatalogManagerView::contentsMousePressEvent(TQMouseEvent* event)
{ {
if(event->button() == Qt::LeftButton) if(event->button() == TQt::LeftButton)
_pressPos=event->pos(); _pressPos=event->pos();
TQListView::contentsMousePressEvent( event ); TQListView::contentsMousePressEvent( event );
@ -2515,7 +2515,7 @@ void CatalogManagerView::contentsMousePressEvent(TQMouseEvent* event)
void CatalogManagerView::contentsMouseMoveEvent(TQMouseEvent* event) void CatalogManagerView::contentsMouseMoveEvent(TQMouseEvent* event)
{ {
if(event->state() & Qt::LeftButton) if(event->state() & TQt::LeftButton)
{ {
const int delay = TDEGlobalSettings::dndEventDelay(); const int delay = TDEGlobalSettings::dndEventDelay();
if(TQABS( event->pos().x() - _pressPos.x() ) >= delay || if(TQABS( event->pos().x() - _pressPos.x() ) >= delay ||

@ -47,7 +47,7 @@ using namespace KBabel;
FindInFilesDialog::FindInFilesDialog(bool forReplace, TQWidget* parent) FindInFilesDialog::FindInFilesDialog(bool forReplace, TQWidget* parent)
:FindDialog(forReplace, 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); mainWidget()->layout()->add(box);
_inAllFiles = new TQCheckBox(i18n("&In all files"),box); _inAllFiles = new TQCheckBox(i18n("&In all files"),box);

@ -1807,12 +1807,12 @@ TQString Catalog::dateTime() const
switch(options.dateFormat) switch(options.dateFormat)
{ {
case Qt::LocalDate: case TQt::LocalDate:
{ {
dateTimeString = TDEGlobal::locale()->formatDateTime( dt ); dateTimeString = TDEGlobal::locale()->formatDateTime( dt );
break; break;
} }
case Qt::ISODate: case TQt::ISODate:
{ {
dateTimeString = dt.toString("yyyy-MM-dd hh:mm"); dateTimeString = dt.toString("yyyy-MM-dd hh:mm");
TQTime t; TQTime t;
@ -1823,7 +1823,7 @@ TQString Catalog::dateTime() const
dateTimeString += t.toString("hhmm"); dateTimeString += t.toString("hhmm");
break; break;
} }
case Qt::TextDate: case TQt::TextDate:
{ {
dateTimeString = options.customDateFormat; dateTimeString = options.customDateFormat;

@ -63,7 +63,7 @@ struct KDE_EXPORT SaveSettings
int encoding; int encoding;
bool useOldEncoding; bool useOldEncoding;
Qt::DateFormat dateFormat; TQt::DateFormat dateFormat;
TQString customDateFormat; TQString customDateFormat;
TQString projectString; TQString projectString;

@ -250,7 +250,7 @@ SaveSettings Project::saveSettings ()
settings.autoSyntaxCheck = _settings->autoSyntaxCheck(); settings.autoSyntaxCheck = _settings->autoSyntaxCheck();
settings.saveObsolete = _settings->saveObsolete(); settings.saveObsolete = _settings->saveObsolete();
settings.customDateFormat = _settings->customDateFormat(); settings.customDateFormat = _settings->customDateFormat();
settings.dateFormat = (Qt::DateFormat)_settings->dateFormat(); settings.dateFormat = (TQt::DateFormat)_settings->dateFormat();
settings.updateDescription = _settings->updateDescription(); settings.updateDescription = _settings->updateDescription();
settings.descriptionString = _settings->descriptionString(); settings.descriptionString = _settings->descriptionString();
settings.updateTranslatorCopyright = _settings->updateTranslatorCopyright(); settings.updateTranslatorCopyright = _settings->updateTranslatorCopyright();

@ -105,7 +105,7 @@ FindDialog::FindDialog(bool forReplace, TQWidget* parent)
_replaceCombo=0; _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))); connect(_buttonGrp,TQT_SIGNAL(clicked(int)), this, TQT_SLOT(inButtonsClicked(int)));
layout->addWidget(_buttonGrp); layout->addWidget(_buttonGrp);
@ -118,7 +118,7 @@ FindDialog::FindDialog(bool forReplace, TQWidget* parent)
"to search.</p></qt>")); "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); layout->addWidget(box);
_caseSensitive = new TQCheckBox(i18n("C&ase sensitive"),box); _caseSensitive = new TQCheckBox(i18n("C&ase sensitive"),box);

@ -131,7 +131,7 @@ SavePreferences::SavePreferences(TQWidget *parent)
layout->setSpacing(KDialog::spacingHint()); layout->setSpacing(KDialog::spacingHint());
layout->setMargin(KDialog::marginHint()); layout->setMargin(KDialog::marginHint());
TQGroupBox* box=new TQGroupBox(1,Qt::Horizontal,page); TQGroupBox* box=new TQGroupBox(1,TQt::Horizontal,page);
layout->addWidget(box); layout->addWidget(box);
box->setMargin(KDialog::marginHint()); 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"); _autoCheckButton = new TQCheckBox(i18n("Chec&k syntax of file when saving"),box, "kcfg_AutoSyntaxCheck");
_saveObsoleteButton = new TQCheckBox(i18n("Save &obsolete entries"),box, "kcfg_SaveObsolete"); _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); layout->addWidget(descBox);
descBox->setMargin(KDialog::marginHint()); descBox->setMargin(KDialog::marginHint());
_descriptionEdit = new TQLineEdit(descBox, "kcfg_DescriptionString"); _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); ,page);
encodingBox->setMargin(KDialog::marginHint()); encodingBox->setMargin(KDialog::marginHint());
layout->addWidget(encodingBox); layout->addWidget(encodingBox);
@ -175,7 +175,7 @@ SavePreferences::SavePreferences(TQWidget *parent)
_oldEncodingButton = new TQCheckBox(i18n("Kee&p the encoding of the file") _oldEncodingButton = new TQCheckBox(i18n("Kee&p the encoding of the file")
,encodingBox, "kcfg_UseOldEncoding"); ,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( ) ); _autoSaveBox->setMargin( KDialog::marginHint( ) );
layout->addWidget( _autoSaveBox ); layout->addWidget( _autoSaveBox );
_autoSaveDelay = new KIntNumInput( _autoSaveBox, "kcfg_AutoSaveDelay" ); _autoSaveDelay = new KIntNumInput( _autoSaveBox, "kcfg_AutoSaveDelay" );
@ -192,7 +192,7 @@ SavePreferences::SavePreferences(TQWidget *parent)
layout->setSpacing(KDialog::spacingHint()); layout->setSpacing(KDialog::spacingHint());
layout->setMargin(KDialog::marginHint()); 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); layout->addWidget(gridBox);
gridBox->setMargin(KDialog::marginHint()); gridBox->setMargin(KDialog::marginHint());
@ -203,7 +203,7 @@ SavePreferences::SavePreferences(TQWidget *parent)
_encodingButton = new TQCheckBox(i18n("&Encoding"),gridBox, "kcfg_UpdateEncoding"); _encodingButton = new TQCheckBox(i18n("&Encoding"),gridBox, "kcfg_UpdateEncoding");
_projectButton = new TQCheckBox(i18n("Pro&ject"),gridBox, "kcfg_UpdateProject"); _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); layout->addWidget(dateBox);
box->setMargin(KDialog::marginHint()); box->setMargin(KDialog::marginHint());
@ -222,7 +222,7 @@ SavePreferences::SavePreferences(TQWidget *parent)
connect( _customDateButton, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT( customDateActivated(bool) ) ); 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); ,page);
projectBox->setMargin(KDialog::marginHint()); projectBox->setMargin(KDialog::marginHint());
layout->addWidget(projectBox); layout->addWidget(projectBox);
@ -243,14 +243,14 @@ SavePreferences::SavePreferences(TQWidget *parent)
layout->setSpacing(KDialog::spacingHint()); layout->setSpacing(KDialog::spacingHint());
layout->setMargin(KDialog::marginHint()); layout->setMargin(KDialog::marginHint());
TQGroupBox* translatorCopyrightBox = new TQGroupBox(1,Qt::Horizontal, page); TQGroupBox* translatorCopyrightBox = new TQGroupBox(1,TQt::Horizontal, page);
translatorCopyrightBox->setMargin(KDialog::marginHint()); translatorCopyrightBox->setMargin(KDialog::marginHint());
_translatorCopyrightButton = _translatorCopyrightButton =
new TQCheckBox(i18n("Update &translator copyright") new TQCheckBox(i18n("Update &translator copyright")
,translatorCopyrightBox, "kcfg_UpdateTranslatorCopyright"); ,translatorCopyrightBox, "kcfg_UpdateTranslatorCopyright");
layout->addWidget(translatorCopyrightBox); 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); layout->addWidget(fsfBox);
fsfBox->setMargin(KDialog::marginHint()); fsfBox->setMargin(KDialog::marginHint());
@ -369,13 +369,13 @@ void SavePreferences::defaults(const KBabel::SaveSettings& _settings)
switch(_settings.dateFormat) switch(_settings.dateFormat)
{ {
case Qt::ISODate: case TQt::ISODate:
_defaultDateButton->setChecked(true); _defaultDateButton->setChecked(true);
break; break;
case Qt::LocalDate: case TQt::LocalDate:
_localDateButton->setChecked(true); _localDateButton->setChecked(true);
break; break;
case Qt::TextDate: case TQt::TextDate:
_customDateButton->setChecked(true); _customDateButton->setChecked(true);
break; 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)); 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); layout->addWidget(group);
group->setMargin(KDialog::marginHint()); group->setMargin(KDialog::marginHint());
@ -461,7 +461,7 @@ IdentityPreferences::IdentityPreferences(TQWidget* parent, const TQString& proje
TQWhatsThis::add(group,whatsThisMsg); TQWhatsThis::add(group,whatsThisMsg);
group = new TQGroupBox(1,Qt::Horizontal,page); group = new TQGroupBox(1,TQt::Horizontal,page);
layout->addWidget(group); layout->addWidget(group);
group->setMargin(KDialog::marginHint()); group->setMargin(KDialog::marginHint());
@ -667,7 +667,7 @@ MiscPreferences::MiscPreferences(TQWidget *parent)
layout->setSpacing(KDialog::spacingHint()); layout->setSpacing(KDialog::spacingHint());
layout->setMargin(KDialog::marginHint()); layout->setMargin(KDialog::marginHint());
TQGroupBox* box=new TQGroupBox(1,Qt::Horizontal,page); TQGroupBox* box=new TQGroupBox(1,TQt::Horizontal,page);
box->setMargin(KDialog::marginHint()); box->setMargin(KDialog::marginHint());
layout->addWidget(box); layout->addWidget(box);
@ -883,7 +883,7 @@ CatmanPreferences::CatmanPreferences(TQWidget* parent)
layout->setSpacing(KDialog::spacingHint()); layout->setSpacing(KDialog::spacingHint());
layout->setMargin(KDialog::marginHint()); layout->setMargin(KDialog::marginHint());
TQGroupBox* box=new TQGroupBox(1,Qt::Horizontal,page); TQGroupBox* box=new TQGroupBox(1,TQt::Horizontal,page);
box->setMargin(KDialog::marginHint()); box->setMargin(KDialog::marginHint());
layout->addWidget(box); layout->addWidget(box);
@ -917,7 +917,7 @@ CatmanPreferences::CatmanPreferences(TQWidget* parent)
"tree.</p></qt>")); "tree.</p></qt>"));
box=new TQGroupBox(1,Qt::Horizontal,page); box=new TQGroupBox(1,TQt::Horizontal,page);
box->setMargin(KDialog::marginHint()); box->setMargin(KDialog::marginHint());
layout->addWidget(box); layout->addWidget(box);
@ -985,7 +985,7 @@ DirCommandsPreferences::DirCommandsPreferences(TQWidget* parent)
layout->setSpacing(KDialog::spacingHint()); layout->setSpacing(KDialog::spacingHint());
layout->setMargin(KDialog::marginHint()); 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() ); box->setMargin( KDialog::marginHint() );
layout->addWidget( box ); layout->addWidget( box );
@ -1048,7 +1048,7 @@ FileCommandsPreferences::FileCommandsPreferences(TQWidget* parent)
layout->setSpacing(KDialog::spacingHint()); layout->setSpacing(KDialog::spacingHint());
layout->setMargin(KDialog::marginHint()); 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() ); box->setMargin( KDialog::marginHint() );
layout->addWidget( box ); layout->addWidget( box );
@ -1111,7 +1111,7 @@ ViewPreferences::ViewPreferences(TQWidget* parent)
layout->setSpacing(KDialog::spacingHint()); layout->setSpacing(KDialog::spacingHint());
layout->setMargin(KDialog::marginHint()); 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()); box->setMargin(KDialog::marginHint());
layout->addWidget(box); layout->addWidget(box);

@ -77,7 +77,7 @@ RoughTransDlg::RoughTransDlg(KBabelDictBox *dict, Catalog *cat
,partTransCounter(0) ,partTransCounter(0)
,totalTried(0) ,totalTried(0)
{ {
setButtonBoxOrientation(Qt::Vertical); setButtonBoxOrientation(TQt::Vertical);
setButtonText(User1,i18n("&Start")); setButtonText(User1,i18n("&Start"));
setButtonText(User2,i18n("S&top")); setButtonText(User2,i18n("S&top"));
setButtonText(User3,i18n("C&ancel")); setButtonText(User3,i18n("C&ancel"));

@ -40,7 +40,7 @@
GotoDialog::GotoDialog(int max,TQWidget* parent) GotoDialog::GotoDialog(int max,TQWidget* parent)
: KDialogBase(parent,0,true,i18n("Go to Entry"),Ok|Cancel) : 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); _spinBox= new KIntSpinBox(1,max,1,1,10,box);
setMainWidget(box); setMainWidget(box);

@ -1252,7 +1252,7 @@ void MsgMultiLineEdit::highlight()
{ {
TQColor c; TQColor c;
TQFont f; TQFont f;
Qt::VerticalAlignment v; TQt::VerticalAlignment v;
getFormat(_firstChangedLine-1, paragraphLength(_firstChangedLine-1)-1, &f, &c, &v); getFormat(_firstChangedLine-1, paragraphLength(_firstChangedLine-1)-1, &f, &c, &v);
TQString l = text(_firstChangedLine-1); TQString l = text(_firstChangedLine-1);
if( c==_tagColor && !l.endsWith(">") ) // hope _tagColor will be different than other colors if( c==_tagColor && !l.endsWith(">") ) // hope _tagColor will be different than other colors

@ -265,11 +265,11 @@ KBabelDictBox::KBabelDictBox( TQWidget* parent, const char* name, WFlags fl )
mainLayout->addLayout(hbox); mainLayout->addLayout(hbox);
resultSplitter = new TQSplitter(Qt::Vertical,this resultSplitter = new TQSplitter(TQt::Vertical,this
,"resultsplitter"); ,"resultsplitter");
mainLayout->addWidget(resultSplitter); mainLayout->addWidget(resultSplitter);
viewContainer = new TQSplitter(Qt::Vertical,resultSplitter, "singleEntrySplitter"); viewContainer = new TQSplitter(TQt::Vertical,resultSplitter, "singleEntrySplitter");
TQVBoxLayout *vbox = new TQVBoxLayout(viewContainer); TQVBoxLayout *vbox = new TQVBoxLayout(viewContainer);
vbox->setResizeMode(TQLayout::FreeResize); vbox->setResizeMode(TQLayout::FreeResize);
origView = new TQTextView(viewContainer,"origView"); origView = new TQTextView(viewContainer,"origView");

@ -193,7 +193,7 @@ void BugCache::saveBugDetails( const Bug &bug, const BugDetails &details )
for ( it = parts.begin(); it != parts.end(); ++it ) { for ( it = parts.begin(); it != parts.end(); ++it ) {
senders.append( (*it).sender.fullName() ); senders.append( (*it).sender.fullName() );
texts.append( (*it).text ); texts.append( (*it).text );
dates.append( (*it).date.toString( Qt::ISODate ) ); dates.append( (*it).date.toString( TQt::ISODate ) );
} }
m_cacheBugs->writeEntry( "Details", texts ); m_cacheBugs->writeEntry( "Details", texts );
@ -228,7 +228,7 @@ BugDetails BugCache::loadBugDetails( const Bug &bug )
TQStringList::ConstIterator itSenders = senders.begin(); TQStringList::ConstIterator itSenders = senders.begin();
TQStringList::ConstIterator itDates = dates.begin(); TQStringList::ConstIterator itDates = dates.begin();
while( itTexts != texts.end() ) { while( itTexts != texts.end() ) {
TQDateTime date = TQDateTime::fromString( *itDates, Qt::ISODate ); TQDateTime date = TQDateTime::fromString( *itDates, TQt::ISODate );
parts.append( BugDetailsPart( Person(*itSenders), date, *itTexts ) ); parts.append( BugDetailsPart( Person(*itSenders), date, *itTexts ) );
++itTexts; ++itTexts;

@ -194,7 +194,7 @@ KBB::Error DomProcessor::parseDomBugList( const TQDomElement &topElement,
else if ( e.tagName() == "severity" ) else if ( e.tagName() == "severity" )
severity = Bug::stringToSeverity( e.text() ); severity = Bug::stringToSeverity( e.text() );
else if ( e.tagName() == "creationdate" ) else if ( e.tagName() == "creationdate" )
age = ( TQDateTime::fromString( e.text(), Qt::ISODate ) ).daysTo( TQDateTime::currentDateTime() ); age = ( TQDateTime::fromString( e.text(), TQt::ISODate ) ).daysTo( TQDateTime::currentDateTime() );
} }
Person submitter( submitterName, submitterEmail ); Person submitter( submitterName, submitterEmail );
@ -397,7 +397,7 @@ bool DomProcessor::parseAttributeLine( const TQString &line, const TQString &key
TQDateTime DomProcessor::parseDate( const TQString &dateStr ) TQDateTime DomProcessor::parseDate( const TQString &dateStr )
{ {
TQDateTime date = TQDateTime::fromString( dateStr, Qt::ISODate ); TQDateTime date = TQDateTime::fromString( dateStr, TQt::ISODate );
return date; return date;
} }

@ -57,9 +57,9 @@ CentralWidget::CentralWidget( const TQCString &initialPackage,
KDialog::spacingHint() ) )->setAutoAdd( true ); KDialog::spacingHint() ) )->setAutoAdd( true );
// Create TQSplitter children // Create TQSplitter children
m_vertSplitter = new TQSplitter( Qt::Vertical, this ); m_vertSplitter = new TQSplitter( TQt::Vertical, this );
m_listPane = new CWBugListContainer( m_vertSplitter ); m_listPane = new CWBugListContainer( m_vertSplitter );
m_horSplitter = new TQSplitter( Qt::Horizontal,m_vertSplitter ); m_horSplitter = new TQSplitter( TQt::Horizontal,m_vertSplitter );
// The search pane isn't used. Should we remove the code? // The search pane isn't used. Should we remove the code?
m_searchPane = new CWSearchWidget( m_horSplitter ); m_searchPane = new CWSearchWidget( m_horSplitter );
m_bugPane = new CWBugDetailsContainer( m_horSplitter ); m_bugPane = new CWBugDetailsContainer( m_horSplitter );

@ -44,7 +44,7 @@ MsgInputDialog::MsgInputDialog(MsgInputDialog::MessageType type, const Bug &bug,
TQFrame *topFrame = plainPage(); TQFrame *topFrame = plainPage();
( new TQHBoxLayout( topFrame ) )->setAutoAdd( true ); ( new TQHBoxLayout( topFrame ) )->setAutoAdd( true );
mSplitter = new TQSplitter( Qt::Horizontal, topFrame ); mSplitter = new TQSplitter( TQt::Horizontal, topFrame );
TQWidget *w = new TQWidget( mSplitter ); TQWidget *w = new TQWidget( mSplitter );
( new TQVBoxLayout( w, spacingHint(), -1 ) )->setAutoAdd( true ); ( new TQVBoxLayout( w, spacingHint(), -1 ) )->setAutoAdd( true );

@ -46,7 +46,7 @@ PackageSelectDialog::PackageSelectDialog(TQWidget *parent,const char *name) :
setMainWidget( topWidget ); setMainWidget( topWidget );
TQBoxLayout *topLayout = new TQVBoxLayout( topWidget ); TQBoxLayout *topLayout = new TQVBoxLayout( topWidget );
TQSplitter *topSplitter = new TQSplitter( Qt::Vertical, topWidget ); TQSplitter *topSplitter = new TQSplitter( TQt::Vertical, topWidget );
topSplitter->setOpaqueResize( true ); topSplitter->setOpaqueResize( true );
topLayout->addWidget( topSplitter ); topLayout->addWidget( topSplitter );

@ -113,7 +113,7 @@ void PreferencesDialog::setupAdvancedPage()
TQBoxLayout *layout = new TQVBoxLayout( topFrame ); TQBoxLayout *layout = new TQVBoxLayout( topFrame );
layout->setSpacing( spacingHint() ); layout->setSpacing( spacingHint() );
TQButtonGroup *mailGroup = new TQButtonGroup( 1,Qt::Horizontal, TQButtonGroup *mailGroup = new TQButtonGroup( 1,TQt::Horizontal,
i18n( "Mail Client" ), topFrame ); i18n( "Mail Client" ), topFrame );
layout->addWidget( mailGroup ); layout->addWidget( mailGroup );

@ -13,7 +13,7 @@
SeveritySelectDialog::SeveritySelectDialog(TQWidget *parent,const char *name) : SeveritySelectDialog::SeveritySelectDialog(TQWidget *parent,const char *name) :
KDialogBase( parent, name, true, i18n("Select Severity"), Ok|Cancel ) KDialogBase( parent, name, true, i18n("Select Severity"), Ok|Cancel )
{ {
mButtonGroup = new TQButtonGroup( 1,Qt::Horizontal, i18n("Severity"), this ); mButtonGroup = new TQButtonGroup( 1,TQt::Horizontal, i18n("Severity"), this );
setMainWidget( mButtonGroup ); setMainWidget( mButtonGroup );
TQValueList<Bug::Severity> severities = Bug::severities(); TQValueList<Bug::Severity> severities = Bug::severities();

@ -53,7 +53,7 @@ KompareNavTreePart::KompareNavTreePart( TQWidget* parent, const char* name )
m_destination( "" ), m_destination( "" ),
m_info( 0 ) m_info( 0 )
{ {
m_splitter = new TQSplitter( Qt::Horizontal ); m_splitter = new TQSplitter( TQt::Horizontal );
setWidget( m_splitter ); setWidget( m_splitter );

@ -41,7 +41,7 @@ KompareConnectWidgetFrame::KompareConnectWidgetFrame( KompareListView* left,
ViewSettings* settings, ViewSettings* settings,
KompareSplitter* parent, KompareSplitter* parent,
const char* name ) : const char* name ) :
TQSplitterHandle(Qt::Horizontal, (TQSplitter *)parent, name), TQSplitterHandle(TQt::Horizontal, (TQSplitter *)parent, name),
m_wid ( left, right, settings, this, name ), m_wid ( left, right, settings, this, name ),
m_label ( "", this ), m_label ( "", this ),
m_layout ( this ) m_layout ( this )
@ -75,7 +75,7 @@ static int kMouseOffset;
void KompareConnectWidgetFrame::mouseMoveEvent( TQMouseEvent *e ) void KompareConnectWidgetFrame::mouseMoveEvent( TQMouseEvent *e )
{ {
if ( !(e->state()&Qt::LeftButton) ) if ( !(e->state()&TQt::LeftButton) )
return; return;
TQCOORD pos = s->pick( parentWidget()->mapFromGlobal(e->globalPos()) ) TQCOORD pos = s->pick( parentWidget()->mapFromGlobal(e->globalPos()) )
@ -86,14 +86,14 @@ void KompareConnectWidgetFrame::mouseMoveEvent( TQMouseEvent *e )
void KompareConnectWidgetFrame::mousePressEvent( TQMouseEvent *e ) void KompareConnectWidgetFrame::mousePressEvent( TQMouseEvent *e )
{ {
if ( e->button() == Qt::LeftButton ) if ( e->button() == TQt::LeftButton )
kMouseOffset = s->pick( e->pos() ); kMouseOffset = s->pick( e->pos() );
TQSplitterHandle::mousePressEvent(e); TQSplitterHandle::mousePressEvent(e);
} }
void KompareConnectWidgetFrame::mouseReleaseEvent( TQMouseEvent *e ) void KompareConnectWidgetFrame::mouseReleaseEvent( TQMouseEvent *e )
{ {
if ( !opaque() && e->button() == Qt::LeftButton ) { if ( !opaque() && e->button() == TQt::LeftButton ) {
TQCOORD pos = s->pick( parentWidget()->mapFromGlobal(e->globalPos()) ) TQCOORD pos = s->pick( parentWidget()->mapFromGlobal(e->globalPos()) )
- kMouseOffset; - kMouseOffset;
((KompareSplitter*)s)->moveSplitter( pos, id() ); ((KompareSplitter*)s)->moveSplitter( pos, id() );

@ -36,7 +36,7 @@ using namespace Diff2;
KompareSplitter::KompareSplitter( ViewSettings *settings, TQWidget * parent, KompareSplitter::KompareSplitter( ViewSettings *settings, TQWidget * parent,
const char *name) : const char *name) :
TQSplitter(Qt::Horizontal, parent, name ), TQSplitter(TQt::Horizontal, parent, name ),
m_settings( settings ) m_settings( settings )
{ {
TQFrame *scrollFrame = new TQFrame( parent, "scrollFrame" ); TQFrame *scrollFrame = new TQFrame( parent, "scrollFrame" );
@ -46,9 +46,9 @@ KompareSplitter::KompareSplitter( ViewSettings *settings, TQWidget * parent,
scrollFrame->setFrameStyle( TQFrame::NoFrame | TQFrame::Plain ); scrollFrame->setFrameStyle( TQFrame::NoFrame | TQFrame::Plain );
scrollFrame->setLineWidth(scrollFrame->style().pixelMetric(TQStyle::PM_DefaultFrameWidth)); scrollFrame->setLineWidth(scrollFrame->style().pixelMetric(TQStyle::PM_DefaultFrameWidth));
TQGridLayout *pairlayout = new TQGridLayout(scrollFrame, 2, 2, 0); TQGridLayout *pairlayout = new TQGridLayout(scrollFrame, 2, 2, 0);
m_vScroll = new TQScrollBar( Qt::Vertical, scrollFrame ); m_vScroll = new TQScrollBar( TQt::Vertical, scrollFrame );
pairlayout->addWidget( m_vScroll, 0, 1 ); pairlayout->addWidget( m_vScroll, 0, 1 );
m_hScroll = new TQScrollBar( Qt::Horizontal, scrollFrame ); m_hScroll = new TQScrollBar( TQt::Horizontal, scrollFrame );
pairlayout->addWidget( m_hScroll, 1, 0 ); pairlayout->addWidget( m_hScroll, 1, 0 );
new KompareListViewFrame(true, m_settings, this, "source"); new KompareListViewFrame(true, m_settings, this, "source");
@ -229,7 +229,7 @@ void KompareSplitter::moveSplitter( TQCOORD p, int id )
int* ws = new int[d->list.count()]; int* ws = new int[d->list.count()];
TQWidget *w = 0; TQWidget *w = 0;
bool upLeft; bool upLeft;
if ( TQApplication::reverseLayout() && orient ==Qt::Horizontal ) { if ( TQApplication::reverseLayout() && orient ==TQt::Horizontal ) {
int q = p + s->wid->width(); int q = p + s->wid->width();
doMove( FALSE, q, id - 1, -1, (p > max), poss, ws ); doMove( FALSE, q, id - 1, -1, (p > max), poss, ws );
doMove( TRUE, q, id, -1, (p < min), poss, ws ); doMove( TRUE, q, id, -1, (p < min), poss, ws );
@ -408,7 +408,7 @@ void KompareSplitter::repaintHandles()
void KompareSplitter::wheelEvent( TQWheelEvent* e ) void KompareSplitter::wheelEvent( TQWheelEvent* e )
{ {
// scroll lines... // scroll lines...
if ( e->orientation() == Qt::Vertical ) if ( e->orientation() == TQt::Vertical )
{ {
if ( e->state() & TQt::ControlButton ) if ( e->state() & TQt::ControlButton )
if ( e->delta() < 0 ) // scroll down one page if ( e->delta() < 0 ) // scroll down one page

@ -38,19 +38,19 @@ FilesPage::FilesPage( TQWidget* parent ) : PageBase( parent ), m_URLChanged( fal
layout->setSpacing( KDialog::spacingHint() ); layout->setSpacing( KDialog::spacingHint() );
layout->setMargin( KDialog::marginHint() ); layout->setMargin( KDialog::marginHint() );
m_firstGB = new TQGroupBox( 1, Qt::Vertical, "You have to set this. :)", page ); m_firstGB = new TQGroupBox( 1, TQt::Vertical, "You have to set this. :)", page );
m_firstURLComboBox = new KURLComboBox( KURLComboBox::Both, true, m_firstGB, "SourceURLComboBox" ); m_firstURLComboBox = new KURLComboBox( KURLComboBox::Both, true, m_firstGB, "SourceURLComboBox" );
m_firstURLRequester = new KURLRequester( m_firstURLComboBox, m_firstGB ); m_firstURLRequester = new KURLRequester( m_firstURLComboBox, m_firstGB );
m_firstURLRequester->setFocus(); m_firstURLRequester->setFocus();
m_secondGB = new TQGroupBox( 1, Qt::Vertical, "This too!", page ); m_secondGB = new TQGroupBox( 1, TQt::Vertical, "This too!", page );
m_secondURLComboBox = new KURLComboBox( KURLComboBox::Both, true, m_secondGB, "DestURLComboBox" ); m_secondURLComboBox = new KURLComboBox( KURLComboBox::Both, true, m_secondGB, "DestURLComboBox" );
m_secondURLRequester = new KURLRequester( m_secondURLComboBox, m_secondGB ); m_secondURLRequester = new KURLRequester( m_secondURLComboBox, m_secondGB );
connect( m_firstURLRequester, TQT_SIGNAL( urlSelected( const TQString & ) ), TQT_SLOT( setSecondURL( const TQString & ) ) ); connect( m_firstURLRequester, TQT_SIGNAL( urlSelected( const TQString & ) ), TQT_SLOT( setSecondURL( const TQString & ) ) );
connect( m_secondURLRequester, TQT_SIGNAL( urlSelected( const TQString & ) ), TQT_SLOT( setFirstURL( const TQString & ) ) ); connect( m_secondURLRequester, TQT_SIGNAL( urlSelected( const TQString & ) ), TQT_SLOT( setFirstURL( const TQString & ) ) );
m_thirdGB = new TQGroupBox( 1, Qt::Vertical, i18n( "Encoding" ), page ); m_thirdGB = new TQGroupBox( 1, TQt::Vertical, i18n( "Encoding" ), page );
m_encodingComboBox = new TQComboBox( false, m_thirdGB, "encoding_combobox" ); m_encodingComboBox = new TQComboBox( false, m_thirdGB, "encoding_combobox" );
m_encodingComboBox->insertStringList( TDEGlobal::charsets()->availableEncodingNames() ); m_encodingComboBox->insertStringList( TDEGlobal::charsets()->availableEncodingNames() );

@ -48,7 +48,7 @@ ViewPage::ViewPage( TQWidget* parent ) : PageBase( parent )
layout->setMargin( KDialog::marginHint() ); layout->setMargin( KDialog::marginHint() );
// add a groupbox // add a groupbox
colorGroupBox = new TQGroupBox( 2, Qt::Horizontal, i18n( "Colors" ), page ); colorGroupBox = new TQGroupBox( 2, TQt::Horizontal, i18n( "Colors" ), page );
layout->addWidget( colorGroupBox ); layout->addWidget( colorGroupBox );
colorGroupBox->setMargin( KDialog::marginHint() ); colorGroupBox->setMargin( KDialog::marginHint() );

@ -62,7 +62,7 @@ int main(int argc, char **argv)
headerLines.gres( TQRegExp( "^Last-Translator:.*" ), "Last-Translator: transxx program <null@kde.org>" ); headerLines.gres( TQRegExp( "^Last-Translator:.*" ), "Last-Translator: transxx program <null@kde.org>" );
headerLines.gres( TQRegExp( "^Language-Team:.*" ), "Language-Team: Test Language <kde-i18n-doc@kde.org>" ); headerLines.gres( TQRegExp( "^Language-Team:.*" ), "Language-Team: Test Language <kde-i18n-doc@kde.org>" );
TQString revisionDate ( "PO-Revision-Date: " ); TQString revisionDate ( "PO-Revision-Date: " );
const TQDateTime dt = TQDateTime::currentDateTime( Qt::UTC ); const TQDateTime dt = TQDateTime::currentDateTime( TQt::UTC );
revisionDate += dt.toString( "yyyy-MM-dd hh:mm+0000" ); revisionDate += dt.toString( "yyyy-MM-dd hh:mm+0000" );
headerLines.gres( TQRegExp( "^PO-Revision-Date:.*" ), revisionDate ); headerLines.gres( TQRegExp( "^PO-Revision-Date:.*" ), revisionDate );
headerLines << "Plural-Forms: nplurals=1; plural=0;"; headerLines << "Plural-Forms: nplurals=1; plural=0;";

@ -33,7 +33,7 @@ int main( int argc, char **argv )
} }
} }
const TQDateTime now = TQDateTime::currentDateTime( Qt::UTC ); const TQDateTime now = TQDateTime::currentDateTime( TQt::UTC );
cout << "# SOME DESCRIPTIVE TITLE.\n"; cout << "# SOME DESCRIPTIVE TITLE.\n";
cout << "# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.\n"; cout << "# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.\n";

@ -1132,7 +1132,7 @@ void StyleCheckStyle::drawPrimitive( PrimitiveElement pe,
if (p && p->device()->devType() == TQInternal::Widget) { if (p && p->device()->devType() == TQInternal::Widget) {
TQHeader* hdr = dynamic_cast<TQHeader*>(p->device()); TQHeader* hdr = dynamic_cast<TQHeader*>(p->device());
if (hdr) if (hdr)
horizontal = hdr->orientation() ==Qt::Horizontal; horizontal = hdr->orientation() ==TQt::Horizontal;
} }
int x,y,w,h; int x,y,w,h;
@ -1624,7 +1624,7 @@ void StyleCheckStyle::drawTDEStylePrimitive( TDEStylePrimitive kpe,
// ------------------------------------------------------------------- // -------------------------------------------------------------------
case KPE_SliderGroove: { case KPE_SliderGroove: {
const TQSlider* slider = (const TQSlider*)widget; const TQSlider* slider = (const TQSlider*)widget;
bool horizontal = slider->orientation() ==Qt::Horizontal; bool horizontal = slider->orientation() ==TQt::Horizontal;
int gcenter = (horizontal ? r.height() : r.width()) / 2; int gcenter = (horizontal ? r.height() : r.width()) / 2;
TQRect gr; TQRect gr;
@ -1658,7 +1658,7 @@ void StyleCheckStyle::drawTDEStylePrimitive( TDEStylePrimitive kpe,
// ------------------------------------------------------------------- // -------------------------------------------------------------------
case KPE_SliderHandle: { case KPE_SliderHandle: {
const TQSlider* slider = (const TQSlider*)widget; const TQSlider* slider = (const TQSlider*)widget;
bool horizontal = slider->orientation() ==Qt::Horizontal; bool horizontal = slider->orientation() ==TQt::Horizontal;
int x,y,w,h; int x,y,w,h;
r.rect(&x, &y, &w, &h); r.rect(&x, &y, &w, &h);
int x2 = x+w-1; int x2 = x+w-1;
@ -2108,14 +2108,14 @@ void StyleCheckStyle::drawControl( ControlElement element,
// Draw the pixmap // Draw the pixmap
if ( pixmap->depth() == 1 ) if ( pixmap->depth() == 1 )
p->setBackgroundMode( Qt::OpaqueMode ); p->setBackgroundMode( TQt::OpaqueMode );
int diffw = ( ( w - pixmap->width() ) / 2 ) int diffw = ( ( w - pixmap->width() ) / 2 )
+ ( ( w - pixmap->width() ) % 2 ); + ( ( w - pixmap->width() ) % 2 );
p->drawPixmap( x+diffw, y+itemFrame, *pixmap ); p->drawPixmap( x+diffw, y+itemFrame, *pixmap );
if ( pixmap->depth() == 1 ) if ( pixmap->depth() == 1 )
p->setBackgroundMode( Qt::TransparentMode ); p->setBackgroundMode( TQt::TransparentMode );
} }
} }
@ -2354,7 +2354,7 @@ void StyleCheckStyle::drawComplexControl( ComplexControl control,
TQRect pr = parent->rect(); TQRect pr = parent->rect();
renderGradient( p, r, cg.button(), renderGradient( p, r, cg.button(),
parent->orientation() == Qt::Vertical, parent->orientation() == TQt::Vertical,
r.x(), r.y(), pr.width()-2, pr.height()-2); r.x(), r.y(), pr.width()-2, pr.height()-2);
} }
else if (widget->parent()->inherits("TQToolBarExtensionWidget")) else if (widget->parent()->inherits("TQToolBarExtensionWidget"))
@ -2363,7 +2363,7 @@ void StyleCheckStyle::drawComplexControl( ComplexControl control,
TQToolBar* toolbar = (TQToolBar*)parent->parent(); TQToolBar* toolbar = (TQToolBar*)parent->parent();
TQRect tr = toolbar->rect(); TQRect tr = toolbar->rect();
if ( toolbar->orientation() == Qt::Horizontal ) { if ( toolbar->orientation() == TQt::Horizontal ) {
renderGradient( p, r, cg.button(), false, r.x(), r.y(), renderGradient( p, r, cg.button(), false, r.x(), r.y(),
r.width(), tr.height() ); r.width(), tr.height() );
} else { } else {

@ -320,7 +320,7 @@ class-token has to be a token representing either a class or a struct."
aslot nil) aslot nil)
) )
((kde-label-namespace (car (semantic-token-extent elt))) ((kde-label-namespace (car (semantic-token-extent elt)))
;;NAMESPACE - semantic doesn't handle things like Qt::ButtonState correctly ;;NAMESPACE - semantic doesn't handle things like TQt::ButtonState correctly
;; so we do ;) ;; so we do ;)
(set namespace (kde-label-namespace (car (semantic-token-extent elt)))) (set namespace (kde-label-namespace (car (semantic-token-extent elt))))
) )

@ -38,7 +38,7 @@ MultiView::MultiView(TopLevel* top, TQWidget* parent, const char* name)
: TQSplitter(parent, name), TraceItemView(0, top) : TQSplitter(parent, name), TraceItemView(0, top)
{ {
// default // default
setOrientation(Qt::Horizontal); setOrientation(TQt::Horizontal);
appendView(); appendView();
_active = _views.first(); _active = _views.first();
@ -177,7 +177,7 @@ void MultiView::readViewConfig(TDEConfig* c,
int n = g->readNumEntry("Panels", 1); int n = g->readNumEntry("Panels", 1);
setChildCount(n); setChildCount(n);
setOrientation( (g->readEntry("Orientation") == TQString("Horizontal")) ? setOrientation( (g->readEntry("Orientation") == TQString("Horizontal")) ?
Qt::Horizontal : Qt::Vertical ); TQt::Horizontal : TQt::Vertical );
setSizes(g->readIntListEntry("PanelSizes")); setSizes(g->readIntListEntry("PanelSizes"));
@ -208,7 +208,7 @@ void MultiView::saveViewConfig(TDEConfig* c,
g.writeEntry("Panels", childCount()); g.writeEntry("Panels", childCount());
g.writeEntry("Orientation", g.writeEntry("Orientation",
(orientation() == Qt::Horizontal) ? (orientation() == TQt::Horizontal) ?
"Horizontal" : "Vertical"); "Horizontal" : "Vertical");
g.writeEntry("PanelSizes", sizes()); g.writeEntry("PanelSizes", sizes());

@ -52,7 +52,7 @@ TabBar::TabBar(TabView* v, TQTabWidget* parent, const char *name)
void TabBar::mousePressEvent(TQMouseEvent *e) void TabBar::mousePressEvent(TQMouseEvent *e)
{ {
if (e->button() == Qt::RightButton) { if (e->button() == TQt::RightButton) {
TQTab *tab = selectTab( e->pos() ); TQTab *tab = selectTab( e->pos() );
TQWidget* page; TQWidget* page;
page = tab ? _tabWidget->page( indexOf( tab->identifier() ) ) :0; page = tab ? _tabWidget->page( indexOf( tab->identifier() ) ) :0;
@ -114,7 +114,7 @@ void TabBar::mousePressEvent(TQMouseEvent *e)
// Splitter // Splitter
// //
Splitter::Splitter(Qt::Orientation o, TQWidget* parent, const char* name) Splitter::Splitter(TQt::Orientation o, TQWidget* parent, const char* name)
: TQSplitter(o, parent, name) : TQSplitter(o, parent, name)
{} {}
@ -242,8 +242,8 @@ TabView::TabView(TraceItemView* parentView,
_nameLabel->setText(i18n("(No profile data file loaded)")); _nameLabel->setText(i18n("(No profile data file loaded)"));
vbox->addWidget( _nameLabel ); vbox->addWidget( _nameLabel );
_mainSplitter = new TQSplitter(Qt::Horizontal, this); _mainSplitter = new TQSplitter(TQt::Horizontal, this);
_leftSplitter = new Splitter(Qt::Vertical, _mainSplitter, "Left"); _leftSplitter = new Splitter(TQt::Vertical, _mainSplitter, "Left");
vbox->addWidget( _mainSplitter ); vbox->addWidget( _mainSplitter );
_rightTW = new TabWidget(this, _mainSplitter, "Right"); _rightTW = new TabWidget(this, _mainSplitter, "Right");
@ -258,7 +258,7 @@ TabView::TabView(TraceItemView* parentView,
connect(_topTW, TQT_SIGNAL(visibleRectChanged(TabWidget*)), connect(_topTW, TQT_SIGNAL(visibleRectChanged(TabWidget*)),
this, TQT_SLOT(visibleRectChangedSlot(TabWidget*))); this, TQT_SLOT(visibleRectChangedSlot(TabWidget*)));
_bottomSplitter = new Splitter(Qt::Horizontal, _bottomSplitter = new Splitter(TQt::Horizontal,
_leftSplitter, "Bottom"); _leftSplitter, "Bottom");
_leftTW = new TabWidget(this, _bottomSplitter, "Left"); _leftTW = new TabWidget(this, _bottomSplitter, "Left");

@ -65,7 +65,7 @@ class Splitter: public TQSplitter
public: public:
Splitter(Qt::Orientation o, TQWidget* parent = 0, const char* name = 0); Splitter(TQt::Orientation o, TQWidget* parent = 0, const char* name = 0);
void checkVisiblity(); void checkVisiblity();
protected: protected:

@ -266,7 +266,7 @@ void TopLevel::restoreCurrentState(TQString postfix)
_multiView->readViewConfig(tdeconfig, TQString("MainView"), postfix, true); _multiView->readViewConfig(tdeconfig, TQString("MainView"), postfix, true);
_taSplit->setChecked(_multiView->childCount()>1); _taSplit->setChecked(_multiView->childCount()>1);
_taSplitDir->setEnabled(_multiView->childCount()>1); _taSplitDir->setEnabled(_multiView->childCount()>1);
_taSplitDir->setChecked(_multiView->orientation() == Qt::Horizontal); _taSplitDir->setChecked(_multiView->orientation() == TQt::Horizontal);
} }
@ -2031,13 +2031,13 @@ void TopLevel::splitSlot()
_taSplit->setChecked(count>1); _taSplit->setChecked(count>1);
_taSplitDir->setEnabled(count>1); _taSplitDir->setEnabled(count>1);
_taSplitDir->setChecked(_multiView->orientation() == Qt::Horizontal); _taSplitDir->setChecked(_multiView->orientation() == TQt::Horizontal);
} }
void TopLevel::splitDirSlot() void TopLevel::splitDirSlot()
{ {
_multiView->setOrientation( _taSplitDir->isChecked() ? _multiView->setOrientation( _taSplitDir->isChecked() ?
Qt::Horizontal : Qt::Vertical ); TQt::Horizontal : TQt::Vertical );
} }

@ -216,7 +216,7 @@ private:
TQLabel* _statusLabel; TQLabel* _statusLabel;
TDERecentFilesAction* _openRecent; TDERecentFilesAction* _openRecent;
bool _twoMainWidgets; bool _twoMainWidgets;
Qt::Orientation _spOrientation; TQt::Orientation _spOrientation;
MultiView* _multiView; MultiView* _multiView;
FunctionSelection* _functionSelection; FunctionSelection* _functionSelection;

@ -1852,7 +1852,7 @@ void TreeMapWidget::mousePressEvent( TQMouseEvent* e )
} }
// item under mouse always selected on right button press // item under mouse always selected on right button press
if (e->button() == Qt::RightButton) { if (e->button() == TQt::RightButton) {
TreeMapItem* changed2 = setTmpSelected(item, true); TreeMapItem* changed2 = setTmpSelected(item, true);
if (changed2) changed = changed2->commonParent(changed); if (changed2) changed = changed2->commonParent(changed);
} }
@ -1862,7 +1862,7 @@ void TreeMapWidget::mousePressEvent( TQMouseEvent* e )
if (changed) if (changed)
redraw(changed); redraw(changed);
if (e->button() == Qt::RightButton) { if (e->button() == TQt::RightButton) {
// emit selection change // emit selection change
if (! (_tmpSelection == _selection)) { if (! (_tmpSelection == _selection)) {

@ -234,10 +234,10 @@ public:
* longest side of rectangle left for drawing * longest side of rectangle left for drawing
* Best: Choose split direction for all subitems of an area * Best: Choose split direction for all subitems of an area
* depending on longest side * depending on longest side
* HAlternate:Qt::Horizontal at top; alternate direction on depth step * HAlternate: Horizontal at top; alternate direction on depth step
* VAlternate:Qt::Vertical at top; alternate direction on depth step * VAlternate: Vertical at top; alternate direction on depth step
* Qt::Horizontal: Always horizontal split direction * Horizontal: Always horizontal split direction
* Qt::Vertical: Always vertical split direction * Vertical: Always vertical split direction
*/ */
enum SplitMode { Bisection, Columns, Rows, enum SplitMode { Bisection, Columns, Rows,
AlwaysBest, Best, AlwaysBest, Best,

@ -46,7 +46,7 @@ AlignToolBar::AlignToolBar(TQMainWindow* parentWindow, const char* )
insertButton(m_Pixmaps[alac_align_vertical_distribute], alac_align_vertical_distribute, true, i18n("Align Vertical Distribute")); insertButton(m_Pixmaps[alac_align_vertical_distribute], alac_align_vertical_distribute, true, i18n("Align Vertical Distribute"));
insertButton(m_Pixmaps[alac_align_horizontal_distribute], alac_align_horizontal_distribute, true, i18n("Align Horizontal Distribute")); insertButton(m_Pixmaps[alac_align_horizontal_distribute], alac_align_horizontal_distribute, true, i18n("Align Horizontal Distribute"));
setOrientation( Qt::Vertical ); setOrientation( TQt::Vertical );
setVerticalStretchable( true ); setVerticalStretchable( true );
// gets called whenever a button in the toolbar is clicked // gets called whenever a button in the toolbar is clicked

@ -916,14 +916,14 @@ TQString AssociationWidget::toString() {
} }
void AssociationWidget::mouseDoubleClickEvent(TQMouseEvent * me) { void AssociationWidget::mouseDoubleClickEvent(TQMouseEvent * me) {
if (me->button() != Qt::RightButton && me->button() != Qt::LeftButton) if (me->button() != TQt::RightButton && me->button() != TQt::LeftButton)
return; return;
int i = m_LinePath.onLinePath(me->pos()); int i = m_LinePath.onLinePath(me->pos());
if (i == -1) { if (i == -1) {
m_LinePath.setSelected(false); m_LinePath.setSelected(false);
return; return;
} }
if (me->button() != Qt::LeftButton) if (me->button() != TQt::LeftButton)
return; return;
const TQPoint mp(me->pos()); const TQPoint mp(me->pos());
/* if there is no point around the mouse pointer, we insert a new one */ /* if there is no point around the mouse pointer, we insert a new one */
@ -2169,7 +2169,7 @@ void AssociationWidget::selectAssocClassLine(bool sel /* =true */) {
void AssociationWidget::mousePressEvent(TQMouseEvent * me) { void AssociationWidget::mousePressEvent(TQMouseEvent * me) {
m_nMovingPoint = -1; m_nMovingPoint = -1;
//make sure we should be here depending on the button //make sure we should be here depending on the button
if(me -> button() != Qt::RightButton && me->button() != Qt::LeftButton) if(me -> button() != TQt::RightButton && me->button() != TQt::LeftButton)
return; return;
TQPoint mep = me->pos(); TQPoint mep = me->pos();
// See if `mep' is on the connecting line to the association class // See if `mep' is on the connecting line to the association class
@ -2187,7 +2187,7 @@ void AssociationWidget::mousePressEvent(TQMouseEvent * me) {
} }
void AssociationWidget::mouseReleaseEvent(TQMouseEvent * me) { void AssociationWidget::mouseReleaseEvent(TQMouseEvent * me) {
if(me -> button() != Qt::RightButton && me->button() != Qt::LeftButton) { if(me -> button() != TQt::RightButton && me->button() != TQt::LeftButton) {
setSelected( false ); setSelected( false );
return; return;
} }
@ -2208,7 +2208,7 @@ void AssociationWidget::mouseReleaseEvent(TQMouseEvent * me) {
m_nMovingPoint = -1; m_nMovingPoint = -1;
const TQPoint p = me->pos(); const TQPoint p = me->pos();
if (me->button() != Qt::RightButton) { if (me->button() != TQt::RightButton) {
return; return;
} }
@ -2500,7 +2500,7 @@ void AssociationWidget::checkPoints(const TQPoint &p) {
} }
void AssociationWidget::mouseMoveEvent(TQMouseEvent* me) { void AssociationWidget::mouseMoveEvent(TQMouseEvent* me) {
if( me->state() != Qt::LeftButton) { if( me->state() != TQt::LeftButton) {
return; return;
} }

@ -554,7 +554,7 @@ void ClassifierWidget::draw(TQPainter & p, int offsetX, int offsetY) {
if ( tlist.count() > 0 ) { if ( tlist.count() > 0 ) {
UMLWidget::setPen(p); UMLWidget::setPen(p);
TQPen pen = p.pen(); TQPen pen = p.pen();
pen.setStyle(Qt::DotLine); pen.setStyle(TQt::DotLine);
p.setPen(pen); p.setPen(pen);
p.drawRect( offsetX + width() - templatesBoxSize.width(), offsetY, p.drawRect( offsetX + width() - templatesBoxSize.width(), offsetY,
templatesBoxSize.width(), templatesBoxSize.height() ); templatesBoxSize.width(), templatesBoxSize.height() );

@ -59,11 +59,11 @@ void ActivityPage::setupPage() {
m_pUpArrowB -> setEnabled( false ); m_pUpArrowB -> setEnabled( false );
buttonLayout -> addWidget( m_pUpArrowB ); buttonLayout -> addWidget( m_pUpArrowB );
m_pDownArrowB = new KArrowButton( m_pActivityGB, Qt::DownArrow ); m_pDownArrowB = new KArrowButton( m_pActivityGB, TQt::DownArrow );
m_pDownArrowB -> setEnabled( false ); m_pDownArrowB -> setEnabled( false );
buttonLayout -> addWidget( m_pDownArrowB ); buttonLayout -> addWidget( m_pDownArrowB );
m_pBottomArrowB = new KArrowButton( m_pActivityGB, Qt::DownArrow ); m_pBottomArrowB = new KArrowButton( m_pActivityGB, TQt::DownArrow );
m_pBottomArrowB -> setEnabled( false ); m_pBottomArrowB -> setEnabled( false );
buttonLayout -> addWidget( m_pBottomArrowB ); buttonLayout -> addWidget( m_pBottomArrowB );

@ -85,11 +85,11 @@ ClassifierListPage::ClassifierListPage(TQWidget* parent, UMLClassifier* classifi
m_pUpArrowB->setEnabled( false ); m_pUpArrowB->setEnabled( false );
buttonLayout->addWidget( m_pUpArrowB ); buttonLayout->addWidget( m_pUpArrowB );
m_pDownArrowB = new KArrowButton( m_pItemListGB, Qt::DownArrow ); m_pDownArrowB = new KArrowButton( m_pItemListGB, TQt::DownArrow );
m_pDownArrowB->setEnabled( false ); m_pDownArrowB->setEnabled( false );
buttonLayout->addWidget( m_pDownArrowB ); buttonLayout->addWidget( m_pDownArrowB );
m_pBottomArrowB = new KArrowButton( m_pItemListGB, Qt::DownArrow ); m_pBottomArrowB = new KArrowButton( m_pItemListGB, TQt::DownArrow );
m_pBottomArrowB->setEnabled( false ); m_pBottomArrowB->setEnabled( false );
buttonLayout->addWidget( m_pBottomArrowB ); buttonLayout->addWidget( m_pBottomArrowB );

@ -133,7 +133,7 @@ void UMLOperationDialog::setupDialog() {
m_pUpButton->setEnabled( false ); m_pUpButton->setEnabled( false );
buttonLayout->addWidget( m_pUpButton ); buttonLayout->addWidget( m_pUpButton );
m_pDownButton = new KArrowButton( m_pParmsGB, Qt::DownArrow ); m_pDownButton = new KArrowButton( m_pParmsGB, TQt::DownArrow );
m_pDownButton->setEnabled( false ); m_pDownButton->setEnabled( false );
buttonLayout->addWidget( m_pDownButton ); buttonLayout->addWidget( m_pDownButton );

@ -73,7 +73,7 @@ KPlayerPopupSliderAction::KPlayerPopupSliderAction (const TQString& text,
m_frame = new KPlayerPopupFrame; m_frame = new KPlayerPopupFrame;
m_frame -> setFrameStyle (TQFrame::PopupPanel | TQFrame::Raised); m_frame -> setFrameStyle (TQFrame::PopupPanel | TQFrame::Raised);
m_frame -> setLineWidth (2); m_frame -> setLineWidth (2);
m_slider = new KPlayerSlider (Qt::Vertical, m_frame); m_slider = new KPlayerSlider (TQt::Vertical, m_frame);
m_frame -> resize (36, m_slider -> sizeHint().height() + 4); m_frame -> resize (36, m_slider -> sizeHint().height() + 4);
m_slider -> setGeometry (m_frame -> contentsRect()); m_slider -> setGeometry (m_frame -> contentsRect());
//CHANGED kdDebug() << "Popup slider size " << m_slider -> width() << "x" << m_slider -> height() << "\n"; //CHANGED kdDebug() << "Popup slider size " << m_slider -> width() << "x" << m_slider -> height() << "\n";
@ -159,7 +159,7 @@ void KPlayerPopupSliderAction::slotActivated (void)
KPlayerSliderAction::KPlayerSliderAction (const TQString& text, const TDEShortcut& cut, KPlayerSliderAction::KPlayerSliderAction (const TQString& text, const TDEShortcut& cut,
const TQObject* receiver, const char* slot, TDEActionCollection* parent, const char* name) const TQObject* receiver, const char* slot, TDEActionCollection* parent, const char* name)
: KWidgetAction (new KPlayerSlider (Qt::Horizontal, 0, name), text, cut, receiver, slot, parent, name) : KWidgetAction (new KPlayerSlider (TQt::Horizontal, 0, name), text, cut, receiver, slot, parent, name)
//: TDEAction (text, 0, parent, name) //: TDEAction (text, 0, parent, name)
{ {
setAutoSized (true); setAutoSized (true);
@ -187,7 +187,7 @@ int KPlayerSliderAction::plug (TQWidget* widget, int index)
return result; return result;
TDEToolBar* toolbar = (TDEToolBar*) widget; TDEToolBar* toolbar = (TDEToolBar*) widget;
//int id = getToolButtonID(); //int id = getToolButtonID();
//kdDebug() << "Qt::Orientation: " << toolbar -> orientation() << "\n"; //kdDebug() << "TQt::Orientation: " << toolbar -> orientation() << "\n";
//m_slider -> reparent (toolbar, TQPoint()); //m_slider -> reparent (toolbar, TQPoint());
//toolbar -> insertWidget (id, 0, m_slider, index); //toolbar -> insertWidget (id, 0, m_slider, index);
//toolbar -> setItemAutoSized (id, true); //toolbar -> setItemAutoSized (id, true);
@ -199,7 +199,7 @@ int KPlayerSliderAction::plug (TQWidget* widget, int index)
//addContainer (toolbar, id); //addContainer (toolbar, id);
//setupToolbar (toolbar -> orientation(), toolbar); //setupToolbar (toolbar -> orientation(), toolbar);
orientationChanged (toolbar -> orientation()); orientationChanged (toolbar -> orientation());
connect (toolbar, TQT_SIGNAL (orientationChanged (Qt::Orientation)), this, TQT_SLOT (orientationChanged (Qt::Orientation))); connect (toolbar, TQT_SIGNAL (orientationChanged (TQt::Orientation)), this, TQT_SLOT (orientationChanged (TQt::Orientation)));
//connect (toolbar, TQT_SIGNAL (destroyed()), this, TQT_SLOT (toolbarDestroyed())); //connect (toolbar, TQT_SIGNAL (destroyed()), this, TQT_SLOT (toolbarDestroyed()));
//if ( parentCollection() ) //if ( parentCollection() )
// parentCollection() -> connectHighlight (toolbar, this); // parentCollection() -> connectHighlight (toolbar, this);
@ -216,7 +216,7 @@ void KPlayerSliderAction::unplug (TQWidget* widget)
if ( ! slider() || ! isPlugged() || widget != slider() -> parent() ) if ( ! slider() || ! isPlugged() || widget != slider() -> parent() )
return; return;
//TDEToolBar* toolbar = (TDEToolBar*) widget; //TDEToolBar* toolbar = (TDEToolBar*) widget;
disconnect (widget, TQT_SIGNAL (orientationChanged (Qt::Orientation)), this, TQT_SLOT (orientationChanged (Qt::Orientation))); disconnect (widget, TQT_SIGNAL (orientationChanged (TQt::Orientation)), this, TQT_SLOT (orientationChanged (TQt::Orientation)));
//disconnect (toolbar, TQT_SIGNAL (destroyed()), this, TQT_SLOT (toolbarDestroyed())); //disconnect (toolbar, TQT_SIGNAL (destroyed()), this, TQT_SLOT (toolbarDestroyed()));
//m_slider -> reparent (0, TQPoint()); //m_slider -> reparent (0, TQPoint());
/*int index = findContainer (toolbar); /*int index = findContainer (toolbar);
@ -226,9 +226,9 @@ void KPlayerSliderAction::unplug (TQWidget* widget)
removeContainer (index);*/ removeContainer (index);*/
} }
/*void KPlayerSliderAction::setupToolbar (Qt::Orientation orientation, TDEToolBar* toolbar) /*void KPlayerSliderAction::setupToolbar (TQt::Orientation orientation, TDEToolBar* toolbar)
{ {
if ( orientation == Qt::Horizontal ) if ( orientation == TQt::Horizontal )
{ {
// toolbar -> setMinimumWidth (300); // toolbar -> setMinimumWidth (300);
// toolbar -> setMinimumHeight (0); // toolbar -> setMinimumHeight (0);
@ -248,7 +248,7 @@ void KPlayerSliderAction::unplug (TQWidget* widget)
} }
}*/ }*/
void KPlayerSliderAction::orientationChanged (Qt::Orientation orientation) void KPlayerSliderAction::orientationChanged (TQt::Orientation orientation)
{ {
//if ( sender() && sender() -> inherits ("TDEToolBar") ) //if ( sender() && sender() -> inherits ("TDEToolBar") )
// setupToolbar (orientation, (TDEToolBar*) sender()); // setupToolbar (orientation, (TDEToolBar*) sender());
@ -264,7 +264,7 @@ void KPlayerSliderAction::orientationChanged (Qt::Orientation orientation)
m_slider -> reparent (0, TQPoint()); m_slider -> reparent (0, TQPoint());
}*/ }*/
KPlayerSlider::KPlayerSlider (Qt::Orientation orientation, TQWidget* parent, const char* name) KPlayerSlider::KPlayerSlider (TQt::Orientation orientation, TQWidget* parent, const char* name)
//CHANGED : TQSlider (orientation, parent, name) //CHANGED : TQSlider (orientation, parent, name)
: TQSlider (300, 2200, 400, 1000, orientation, parent, name) : TQSlider (300, 2200, 400, 1000, orientation, parent, name)
{ {
@ -283,7 +283,7 @@ TQSize KPlayerSlider::sizeHint() const
TQSize hint = TQSlider::sizeHint(); TQSize hint = TQSlider::sizeHint();
//CHANGED int length = kPlayerSettings() -> preferredSliderLength(); //CHANGED int length = kPlayerSettings() -> preferredSliderLength();
int length = 200; int length = 200;
if ( orientation() == Qt::Horizontal ) if ( orientation() == TQt::Horizontal )
{ {
if ( hint.width() < length ) if ( hint.width() < length )
hint.setWidth (length); hint.setWidth (length);
@ -302,7 +302,7 @@ TQSize KPlayerSlider::minimumSizeHint() const
TQSize hint = TQSlider::minimumSizeHint(); TQSize hint = TQSlider::minimumSizeHint();
//CHANGED int length = kPlayerSettings() -> minimumSliderLength(); //CHANGED int length = kPlayerSettings() -> minimumSliderLength();
int length = 200; int length = 200;
if ( orientation() == Qt::Horizontal ) if ( orientation() == TQt::Horizontal )
{ {
if ( hint.width() < length ) if ( hint.width() < length )
hint.setWidth (length); hint.setWidth (length);
@ -315,7 +315,7 @@ TQSize KPlayerSlider::minimumSizeHint() const
return hint; return hint;
} }
void KPlayerSlider::setOrientation (Qt::Orientation o) void KPlayerSlider::setOrientation (TQt::Orientation o)
{ {
if ( o == orientation() ) if ( o == orientation() )
return; return;
@ -332,14 +332,14 @@ void KPlayerSlider::setOrientation (Qt::Orientation o)
int KPlayerSlider::minValue (void) const int KPlayerSlider::minValue (void) const
{ {
if ( orientation() == Qt::Horizontal ) if ( orientation() == TQt::Horizontal )
return TQSlider::minValue(); return TQSlider::minValue();
return - TQSlider::maxValue(); return - TQSlider::maxValue();
} }
void KPlayerSlider::setMinValue (int minValue) void KPlayerSlider::setMinValue (int minValue)
{ {
if ( orientation() == Qt::Horizontal ) if ( orientation() == TQt::Horizontal )
TQSlider::setMinValue (minValue); TQSlider::setMinValue (minValue);
else else
TQSlider::setMaxValue (- minValue); TQSlider::setMaxValue (- minValue);
@ -347,14 +347,14 @@ void KPlayerSlider::setMinValue (int minValue)
int KPlayerSlider::maxValue (void) const int KPlayerSlider::maxValue (void) const
{ {
if ( orientation() == Qt::Horizontal ) if ( orientation() == TQt::Horizontal )
return TQSlider::maxValue(); return TQSlider::maxValue();
return - TQSlider::minValue(); return - TQSlider::minValue();
} }
void KPlayerSlider::setMaxValue (int maxValue) void KPlayerSlider::setMaxValue (int maxValue)
{ {
if ( orientation() == Qt::Horizontal ) if ( orientation() == TQt::Horizontal )
TQSlider::setMaxValue (maxValue); TQSlider::setMaxValue (maxValue);
else else
TQSlider::setMinValue (- maxValue); TQSlider::setMinValue (- maxValue);
@ -383,14 +383,14 @@ void KPlayerSlider::setPageStep (int pageStep)
int KPlayerSlider::value (void) const int KPlayerSlider::value (void) const
{ {
if ( orientation() == Qt::Horizontal ) if ( orientation() == TQt::Horizontal )
return TQSlider::value(); return TQSlider::value();
return - TQSlider::value(); return - TQSlider::value();
} }
void KPlayerSlider::setValue (int value, int) void KPlayerSlider::setValue (int value, int)
{ {
if ( orientation() == Qt::Horizontal ) if ( orientation() == TQt::Horizontal )
TQSlider::setValue (value); TQSlider::setValue (value);
else else
TQSlider::setValue (- value); TQSlider::setValue (- value);

@ -31,7 +31,7 @@ class KPlayerSlider : public TQSlider
public: public:
/** The KPlayerSlider constructor. Parameters are passed on to TQSlider. /** The KPlayerSlider constructor. Parameters are passed on to TQSlider.
*/ */
explicit KPlayerSlider (Qt::Orientation, TQWidget* parent = 0, const char* name = 0); explicit KPlayerSlider (TQt::Orientation, TQWidget* parent = 0, const char* name = 0);
/** The KPlayerSlider destructor. Does nothing. /** The KPlayerSlider destructor. Does nothing.
*/ */
virtual ~KPlayerSlider(); virtual ~KPlayerSlider();
@ -79,7 +79,7 @@ public:
void setup (int minValue, int maxValue, int value, int pageStep, int lineStep = 1); void setup (int minValue, int maxValue, int value, int pageStep, int lineStep = 1);
/** Sets the slider orientation. /** Sets the slider orientation.
*/ */
virtual void setOrientation (Qt::Orientation); virtual void setOrientation (TQt::Orientation);
signals: signals:
/** Emitted when the slider value changes. /** Emitted when the slider value changes.
@ -195,7 +195,7 @@ public:
protected slots: protected slots:
/** Changes the slider orientation when the toolbar orientation changes. /** Changes the slider orientation when the toolbar orientation changes.
*/ */
void orientationChanged (Qt::Orientation); void orientationChanged (TQt::Orientation);
protected: protected:
/** The slider. /** The slider.

@ -120,7 +120,7 @@ void MessageWidget::drawArrow(TQPainter& p, int x, int y, int w,
// draw arrow line // draw arrow line
if (useDottedLine) { if (useDottedLine) {
TQPen pen = p.pen(); TQPen pen = p.pen();
pen.setStyle(Qt::DotLine); pen.setStyle(TQt::DotLine);
p.setPen(pen); p.setPen(pen);
} }
p.drawLine(x, y, x + w, y); p.drawLine(x, y, x + w, y);

@ -221,7 +221,7 @@ void ToolBarState::mouseMoveEmpty() {
} }
void ToolBarState::changeTool() { void ToolBarState::changeTool() {
if (m_pMouseEvent->state() == Qt::RightButton) { if (m_pMouseEvent->state() == TQt::RightButton) {
UMLApp::app()->getWorkToolBar()->setDefaultTool(); UMLApp::app()->getWorkToolBar()->setDefaultTool();
} }
} }

@ -42,7 +42,7 @@ void ToolBarStateArrow::mousePressWidget() {
} }
void ToolBarStateArrow::mousePressEmpty() { void ToolBarStateArrow::mousePressEmpty() {
if (m_pMouseEvent->button() != Qt::LeftButton) { if (m_pMouseEvent->button() != TQt::LeftButton) {
// Leave widgets selected upon RMB press on empty diagram area. // Leave widgets selected upon RMB press on empty diagram area.
// The popup menu is activated upon RMB release. // The popup menu is activated upon RMB release.
return; return;
@ -76,7 +76,7 @@ void ToolBarStateArrow::mouseReleaseWidget() {
void ToolBarStateArrow::mouseReleaseEmpty() { void ToolBarStateArrow::mouseReleaseEmpty() {
if (m_selectionRect.count() == 4) { if (m_selectionRect.count() == 4) {
m_selectionRect.clear(); m_selectionRect.clear();
} else if (m_pMouseEvent->button() == Qt::RightButton) { } else if (m_pMouseEvent->button() == TQt::RightButton) {
m_pUMLView->setMenu(); m_pUMLView->setMenu();
} }
} }

@ -72,7 +72,7 @@ void ToolBarStateAssociation::slotWidgetRemoved(UMLWidget* widget) {
} }
void ToolBarStateAssociation::mouseReleaseAssociation() { void ToolBarStateAssociation::mouseReleaseAssociation() {
if (m_pMouseEvent->button() != Qt::LeftButton || if (m_pMouseEvent->button() != TQt::LeftButton ||
!m_firstWidget || m_firstWidget->getBaseType() != Uml::wt_Class) { !m_firstWidget || m_firstWidget->getBaseType() != Uml::wt_Class) {
cleanAssociation(); cleanAssociation();
return; return;
@ -85,7 +85,7 @@ void ToolBarStateAssociation::mouseReleaseAssociation() {
} }
void ToolBarStateAssociation::mouseReleaseWidget() { void ToolBarStateAssociation::mouseReleaseWidget() {
if (m_pMouseEvent->button() != Qt::LeftButton) { if (m_pMouseEvent->button() != TQt::LeftButton) {
cleanAssociation(); cleanAssociation();
return; return;
} }

@ -85,7 +85,7 @@ void ToolBarStateMessages::setCurrentElement() {
void ToolBarStateMessages::mouseReleaseWidget() { void ToolBarStateMessages::mouseReleaseWidget() {
//TODO When an association between UMLObjects of invalid types is made, an error message //TODO When an association between UMLObjects of invalid types is made, an error message
//is shown. Shouldn't also a message be used here? //is shown. Shouldn't also a message be used here?
if (m_pMouseEvent->button() != Qt::LeftButton || if (m_pMouseEvent->button() != TQt::LeftButton ||
getCurrentWidget()->getBaseType() != Uml::wt_Object) { getCurrentWidget()->getBaseType() != Uml::wt_Object) {
cleanMessage(); cleanMessage();
return; return;

@ -42,7 +42,7 @@ void ToolBarStateOther::setCurrentElement() {
} }
void ToolBarStateOther::mouseReleaseEmpty() { void ToolBarStateOther::mouseReleaseEmpty() {
if (m_pMouseEvent->button() == Qt::LeftButton) { if (m_pMouseEvent->button() == TQt::LeftButton) {
if (!newWidget()) { if (!newWidget()) {
// Is UMLObject? // Is UMLObject?

@ -1214,7 +1214,7 @@ void UMLDoc::saveToXMI(TQIODevice& file) {
TQDomElement root = doc.createElement( "XMI" ); TQDomElement root = doc.createElement( "XMI" );
root.setAttribute( "xmi.version", "1.2" ); root.setAttribute( "xmi.version", "1.2" );
TQDateTime now = TQDateTime::currentDateTime(); TQDateTime now = TQDateTime::currentDateTime();
root.setAttribute( "timestamp", now.toString(Qt::ISODate)); root.setAttribute( "timestamp", now.toString(TQt::ISODate));
root.setAttribute( "verified", "false"); root.setAttribute( "verified", "false");
root.setAttribute( "xmlns:UML", "http://schema.omg.org/spec/UML/1.3"); root.setAttribute( "xmlns:UML", "http://schema.omg.org/spec/UML/1.3");
doc.appendChild( root ); doc.appendChild( root );

@ -145,7 +145,7 @@ bool UMLListView::eventFilter(TQObject *o, TQEvent *e) {
if (e->type() != TQEvent::MouseButtonPress || !o->isA("TQHeader")) if (e->type() != TQEvent::MouseButtonPress || !o->isA("TQHeader"))
return TQListView::eventFilter(o, e); return TQListView::eventFilter(o, e);
TQMouseEvent *me = TQT_TQMOUSEEVENT(e); TQMouseEvent *me = TQT_TQMOUSEEVENT(e);
if (me->button() == Qt::RightButton) { if (me->button() == TQt::RightButton) {
if (m_pMenu) { if (m_pMenu) {
m_pMenu->hide(); m_pMenu->hide();
disconnect(m_pMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(popupMenuSel(int))); disconnect(m_pMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(popupMenuSel(int)));
@ -169,19 +169,19 @@ void UMLListView::contentsMousePressEvent(TQMouseEvent *me) {
UMLListViewItem * item = (UMLListViewItem*)itemAt(pt); UMLListViewItem * item = (UMLListViewItem*)itemAt(pt);
const TQt::ButtonState button = me->button(); const TQt::ButtonState button = me->button();
if (!item || (button != Qt::RightButton && button != Qt::LeftButton)) { if (!item || (button != TQt::RightButton && button != TQt::LeftButton)) {
UMLApp::app()->getDocWindow()->updateDocumentation(true); UMLApp::app()->getDocWindow()->updateDocumentation(true);
return; return;
} }
if (button == Qt::LeftButton) { if (button == TQt::LeftButton) {
UMLObject *o = item->getUMLObject(); UMLObject *o = item->getUMLObject();
if (o) if (o)
UMLApp::app()->getDocWindow()->showDocumentation(o, false); UMLApp::app()->getDocWindow()->showDocumentation(o, false);
else else
UMLApp::app()->getDocWindow()->updateDocumentation(true); UMLApp::app()->getDocWindow()->updateDocumentation(true);
} }
if (button == Qt::RightButton) { if (button == TQt::RightButton) {
if(m_pMenu != 0) { if(m_pMenu != 0) {
m_pMenu->hide(); m_pMenu->hide();
disconnect(m_pMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(popupMenuSel(int))); disconnect(m_pMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(popupMenuSel(int)));
@ -198,7 +198,7 @@ void UMLListView::contentsMousePressEvent(TQMouseEvent *me) {
} }
void UMLListView::contentsMouseReleaseEvent(TQMouseEvent *me) { void UMLListView::contentsMouseReleaseEvent(TQMouseEvent *me) {
if (me->button() != Qt::LeftButton) { if (me->button() != TQt::LeftButton) {
this->TDEListView::contentsMouseReleaseEvent(me); this->TDEListView::contentsMouseReleaseEvent(me);
return; return;
} }
@ -1041,7 +1041,7 @@ void UMLListView::setView(UMLView * v) {
void UMLListView::contentsMouseDoubleClickEvent(TQMouseEvent * me) { void UMLListView::contentsMouseDoubleClickEvent(TQMouseEvent * me) {
UMLListViewItem * item = static_cast<UMLListViewItem *>( currentItem() ); UMLListViewItem * item = static_cast<UMLListViewItem *>( currentItem() );
if( !item || me -> button() != Qt::LeftButton ) if( !item || me -> button() != TQt::LeftButton )
return; return;
//see if on view //see if on view
Uml::ListView_Type lvType = item -> getType(); Uml::ListView_Type lvType = item -> getType();

@ -59,9 +59,9 @@ void UMLWidgetController::mousePressEvent(TQMouseEvent *me) {
return; return;
} }
if (me->button() == Qt::LeftButton) { if (me->button() == TQt::LeftButton) {
m_leftButtonDown = true; m_leftButtonDown = true;
} else if (me->button() == Qt::RightButton) { } else if (me->button() == TQt::RightButton) {
m_rightButtonDown = true; m_rightButtonDown = true;
} else { } else {
m_middleButtonDown = true; m_middleButtonDown = true;
@ -77,7 +77,7 @@ void UMLWidgetController::mousePressEvent(TQMouseEvent *me) {
if (me->state() == TQt::ShiftButton || me->state() == TQt::ControlButton) { if (me->state() == TQt::ShiftButton || me->state() == TQt::ControlButton) {
m_shiftPressed = true; m_shiftPressed = true;
if (me->button() == Qt::LeftButton) { if (me->button() == TQt::LeftButton) {
m_inMoveArea = true; m_inMoveArea = true;
} }
@ -92,7 +92,7 @@ void UMLWidgetController::mousePressEvent(TQMouseEvent *me) {
m_shiftPressed = false; m_shiftPressed = false;
int count = m_widget->m_pView->getSelectCount(true); int count = m_widget->m_pView->getSelectCount(true);
if (me->button() == Qt::LeftButton) { if (me->button() == TQt::LeftButton) {
if (m_widget->m_bSelected && count > 1) { if (m_widget->m_bSelected && count > 1) {
//Single selection is made in release event if the widget wasn't moved //Single selection is made in release event if the widget wasn't moved
m_inMoveArea = true; m_inMoveArea = true;
@ -189,12 +189,12 @@ void UMLWidgetController::mouseMoveEvent(TQMouseEvent* me) {
} }
void UMLWidgetController::mouseReleaseEvent(TQMouseEvent *me) { void UMLWidgetController::mouseReleaseEvent(TQMouseEvent *me) {
if (me->button() != Qt::LeftButton && me->button() != Qt::RightButton) { if (me->button() != TQt::LeftButton && me->button() != TQt::RightButton) {
if (m_middleButtonDown) { if (m_middleButtonDown) {
m_middleButtonDown = false; m_middleButtonDown = false;
resetSelection(); resetSelection();
} }
} else if (me->button() == Qt::LeftButton) { } else if (me->button() == TQt::LeftButton) {
if (m_leftButtonDown) { if (m_leftButtonDown) {
m_leftButtonDown = false; m_leftButtonDown = false;
@ -238,7 +238,7 @@ void UMLWidgetController::mouseReleaseEvent(TQMouseEvent *me) {
m_inMoveArea = false; m_inMoveArea = false;
} }
} }
} else if (me->button() == Qt::RightButton) { } else if (me->button() == TQt::RightButton) {
if (m_rightButtonDown) { if (m_rightButtonDown) {
m_rightButtonDown = false; m_rightButtonDown = false;
showPopupMenu(me); showPopupMenu(me);
@ -246,11 +246,11 @@ void UMLWidgetController::mouseReleaseEvent(TQMouseEvent *me) {
//Cancel move/edit //Cancel move/edit
TQMouseEvent move(TQMouseEvent::MouseMove, TQMouseEvent move(TQMouseEvent::MouseMove,
TQPoint(m_oldX + m_pressOffsetX, m_oldY + m_pressOffsetY), TQPoint(m_oldX + m_pressOffsetX, m_oldY + m_pressOffsetY),
Qt::LeftButton, Qt::NoButton); TQt::LeftButton, TQt::NoButton);
mouseMoveEvent(&move); mouseMoveEvent(&move);
TQMouseEvent release(TQMouseEvent::MouseButtonRelease, TQMouseEvent release(TQMouseEvent::MouseButtonRelease,
TQPoint(m_oldX + m_pressOffsetX, m_oldY + m_pressOffsetY), TQPoint(m_oldX + m_pressOffsetX, m_oldY + m_pressOffsetY),
Qt::LeftButton, Qt::NoButton); TQt::LeftButton, TQt::NoButton);
mouseReleaseEvent(&release); mouseReleaseEvent(&release);
} }
} }
@ -267,7 +267,7 @@ void UMLWidgetController::mouseReleaseEvent(TQMouseEvent *me) {
} }
void UMLWidgetController::mouseDoubleClickEvent(TQMouseEvent *me) { void UMLWidgetController::mouseDoubleClickEvent(TQMouseEvent *me) {
if (me->button() != Qt::LeftButton) { if (me->button() != TQt::LeftButton) {
return; return;
} }

@ -32,7 +32,7 @@ WorkToolBar::WorkToolBar(TQMainWindow *parentWindow, const char*name)
loadPixmaps(); loadPixmaps();
m_Type = Uml::dt_Class; /* first time in just want it to load arrow, m_Type = Uml::dt_Class; /* first time in just want it to load arrow,
needs anything but dt_Undefined */ needs anything but dt_Undefined */
setOrientation( Qt::Vertical ); setOrientation( TQt::Vertical );
setVerticalStretchable( true ); setVerticalStretchable( true );
// initialize old tool map, everything starts with select tool (arrow) // initialize old tool map, everything starts with select tool (arrow)
m_map.insert(Uml::dt_UseCase,tbb_Arrow); m_map.insert(Uml::dt_UseCase,tbb_Arrow);
@ -210,7 +210,7 @@ void WorkToolBar::slotResetToolBar() {
emit sigButtonChanged(m_CurrentButtonID); emit sigButtonChanged(m_CurrentButtonID);
TQCursor curs; TQCursor curs;
curs.setShape(Qt::ArrowCursor); curs.setShape(TQt::ArrowCursor);
UMLView* view = UMLApp::app()->getCurrentView(); UMLView* view = UMLApp::app()->getCurrentView();
if (view != NULL) { if (view != NULL) {

Loading…
Cancel
Save