diff options
Diffstat (limited to 'cervisia')
-rw-r--r-- | cervisia/annotatectl.cpp | 2 | ||||
-rw-r--r-- | cervisia/cervisiapart.cpp | 8 | ||||
-rw-r--r-- | cervisia/changelogdlg.cpp | 2 | ||||
-rw-r--r-- | cervisia/logdlg.cpp | 2 | ||||
-rw-r--r-- | cervisia/loglist.cpp | 4 | ||||
-rw-r--r-- | cervisia/logmessageedit.cpp | 2 | ||||
-rw-r--r-- | cervisia/logtree.cpp | 8 | ||||
-rw-r--r-- | cervisia/qttableview.cpp | 6 | ||||
-rw-r--r-- | cervisia/repositorydlg.cpp | 2 | ||||
-rw-r--r-- | cervisia/resolvedlg.cpp | 4 | ||||
-rw-r--r-- | cervisia/settingsdlg.cpp | 6 | ||||
-rw-r--r-- | cervisia/updateview_items.cpp | 4 |
12 files changed, 25 insertions, 25 deletions
diff --git a/cervisia/annotatectl.cpp b/cervisia/annotatectl.cpp index d374eaed..8cdeb030 100644 --- a/cervisia/annotatectl.cpp +++ b/cervisia/annotatectl.cpp @@ -170,7 +170,7 @@ void AnnotateController::Private::parseCvsAnnotateOutput() { TQString dateString = line.mid(23, 9); 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(); logInfo.m_author = line.mid(14, 8).stripWhiteSpace(); diff --git a/cervisia/cervisiapart.cpp b/cervisia/cervisiapart.cpp index 8cf00d37..63fb5976 100644 --- a/cervisia/cervisiapart.cpp +++ b/cervisia/cervisiapart.cpp @@ -129,8 +129,8 @@ CervisiaPart::CervisiaPart( TQWidget *parentWidget, const char *widgetName, // an explaination if( cvsService ) { - Qt::Orientation o = splitHorz ? Qt::Vertical - : Qt::Horizontal; + TQt::Orientation o = splitHorz ? TQt::Vertical + : TQt::Horizontal; splitter = new TQSplitter(o, parentWidget, widgetName); // avoid PartManager's warning that Part's window can't handle focus splitter->setFocusPolicy( TQWidget::StrongFocus ); @@ -1635,8 +1635,8 @@ void CervisiaPart::slotConfigure() conf->setGroup("LookAndFeel"); bool splitHorz = conf->readBoolEntry("SplitHorizontally",true); splitter->setOrientation( splitHorz ? - Qt::Vertical : - Qt::Horizontal); + TQt::Vertical : + TQt::Horizontal); } void CervisiaPart::slotHelp() diff --git a/cervisia/changelogdlg.cpp b/cervisia/changelogdlg.cpp index 0a0b4486..dadf606f 100644 --- a/cervisia/changelogdlg.cpp +++ b/cervisia/changelogdlg.cpp @@ -33,7 +33,7 @@ static inline TQString DateStringISO8601() { - return TQDate::currentDate().toString(Qt::ISODate); + return TQDate::currentDate().toString(TQt::ISODate); } diff --git a/cervisia/logdlg.cpp b/cervisia/logdlg.cpp index 29a07d68..11086c9a 100644 --- a/cervisia/logdlg.cpp +++ b/cervisia/logdlg.cpp @@ -66,7 +66,7 @@ LogDialog::LogDialog(TDEConfig& cfg, TQWidget *parent, const char *name) , cvsService(0) , partConfig(cfg) { - TQSplitter *splitter = new TQSplitter(Qt::Vertical, this); + TQSplitter *splitter = new TQSplitter(TQt::Vertical, this); setMainWidget(splitter); tree = new LogTreeView(this); diff --git a/cervisia/loglist.cpp b/cervisia/loglist.cpp index 47bd4115..a5986f7e 100644 --- a/cervisia/loglist.cpp +++ b/cervisia/loglist.cpp @@ -169,7 +169,7 @@ void LogListView::contentsMousePressEvent(TQMouseEvent *e) // Retrieve 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( e->state() & ControlButton ) @@ -177,7 +177,7 @@ void LogListView::contentsMousePressEvent(TQMouseEvent *e) else emit revisionClicked(revision, false); } - else if ( e->button() == Qt::MidButton ) + else if ( e->button() == TQt::MidButton ) emit revisionClicked(revision, true); } diff --git a/cervisia/logmessageedit.cpp b/cervisia/logmessageedit.cpp index cde3c132..bcc0e97d 100644 --- a/cervisia/logmessageedit.cpp +++ b/cervisia/logmessageedit.cpp @@ -69,7 +69,7 @@ void LogMessageEdit::setCompletedItems(const TQStringList&) void LogMessageEdit::keyPressEvent(TQKeyEvent* event) { - bool noModifier = (event->state() == Qt::NoButton || + bool noModifier = (event->state() == TQt::NoButton || event->state() == ShiftButton || event->state() == Keypad); diff --git a/cervisia/logtree.cpp b/cervisia/logtree.cpp index 864e31ee..06899a10 100644 --- a/cervisia/logtree.cpp +++ b/cervisia/logtree.cpp @@ -433,8 +433,8 @@ void LogTreeView::paintRevisionCell(TQPainter *p, void LogTreeView::contentsMousePressEvent(TQMouseEvent *e) { - if ( e->button() == Qt::MidButton || - e->button() == Qt::LeftButton) + if ( e->button() == TQt::MidButton || + e->button() == TQt::LeftButton) { int row = rowAt( e->pos().y() ); 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 // the left mouse button with the control key was pressed - bool changeRevB = (e->button() == Qt::MidButton) || - (e->button() == Qt::LeftButton && + bool changeRevB = (e->button() == TQt::MidButton) || + (e->button() == TQt::LeftButton && e->state() & ControlButton); emit revisionClicked(it.current()->m_logInfo.m_revision, changeRevB); diff --git a/cervisia/qttableview.cpp b/cervisia/qttableview.cpp index 22eca6da..6c02819c 100644 --- a/cervisia/qttableview.cpp +++ b/cervisia/qttableview.cpp @@ -1420,7 +1420,7 @@ void QtTableView::resizeEvent( TQResizeEvent * ) 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 ); } @@ -1443,7 +1443,7 @@ TQScrollBar *QtTableView::verticalScrollBar() const { QtTableView *that = (QtTableView*)this; // semantic const if ( !vScrollBar ) { - TQScrollBar *sb = new TQScrollBar( Qt::Vertical, that ); + TQScrollBar *sb = new TQScrollBar( TQt::Vertical, that ); #ifndef TQT_NO_CURSOR sb->setCursor( arrowCursor ); #endif @@ -1474,7 +1474,7 @@ TQScrollBar *QtTableView::horizontalScrollBar() const { QtTableView *that = (QtTableView*)this; // semantic const if ( !hScrollBar ) { - TQScrollBar *sb = new TQScrollBar( Qt::Horizontal, that ); + TQScrollBar *sb = new TQScrollBar( TQt::Horizontal, that ); #ifndef TQT_NO_CURSOR sb->setCursor( arrowCursor ); #endif diff --git a/cervisia/repositorydlg.cpp b/cervisia/repositorydlg.cpp index 8cc5e97e..60a35257 100644 --- a/cervisia/repositorydlg.cpp +++ b/cervisia/repositorydlg.cpp @@ -178,7 +178,7 @@ RepositoryDialog::RepositoryDialog(TDEConfig& cfg, CvsService_stub* cvsService, connect(m_repoList, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotSelectionChanged())); - KButtonBox* actionbox = new KButtonBox(mainWidget, Qt::Vertical); + KButtonBox* actionbox = new KButtonBox(mainWidget, TQt::Vertical); TQPushButton* addbutton = actionbox->addButton(i18n("&Add...")); m_modifyButton = actionbox->addButton(i18n("&Modify...")); m_removeButton = actionbox->addButton(i18n("&Remove")); diff --git a/cervisia/resolvedlg.cpp b/cervisia/resolvedlg.cpp index 850f681c..ce3ce533 100644 --- a/cervisia/resolvedlg.cpp +++ b/cervisia/resolvedlg.cpp @@ -108,9 +108,9 @@ ResolveDialog::ResolveDialog(TDEConfig& cfg, TQWidget *parent, const char *name) 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); TQBoxLayout *versionAlayout = new TQVBoxLayout(versionALayoutWidget, 5); diff --git a/cervisia/settingsdlg.cpp b/cervisia/settingsdlg.cpp index d9383bc6..33f0b935 100644 --- a/cervisia/settingsdlg.cpp +++ b/cervisia/settingsdlg.cpp @@ -262,7 +262,7 @@ void SettingsDialog::addGeneralPage() */ 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")); 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(), LoadIcon("preferences-desktop")); - TQGroupBox* fontGroupBox = new TQGroupBox(4, Qt::Vertical, i18n("Fonts"), + TQGroupBox* fontGroupBox = new TQGroupBox(4, TQt::Vertical, i18n("Fonts"), lookPage); fontGroupBox->setInsideSpacing(KDialog::spacingHint()); @@ -341,7 +341,7 @@ void SettingsDialog::addLookAndFeelPage() m_changelogFontBox = new FontButton(i18n("Font for ChangeLog View..."), fontGroupBox); - TQGroupBox* colorGroupBox = new TQGroupBox(4, Qt::Horizontal, + TQGroupBox* colorGroupBox = new TQGroupBox(4, TQt::Horizontal, i18n("Colors"), lookPage); colorGroupBox->setColumns(4); colorGroupBox->setInsideSpacing(KDialog::spacingHint()); diff --git a/cervisia/updateview_items.cpp b/cervisia/updateview_items.cpp index 1b0e788e..37fc36f5 100644 --- a/cervisia/updateview_items.cpp +++ b/cervisia/updateview_items.cpp @@ -359,7 +359,7 @@ void UpdateDirItem::syncWithEntries() // const TQDateTime date(TQDateTime::fromString(timestamp)); // UTC Time const TQDateTime date(parseDateTime(timestamp)); // UTC Time 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) entry.m_status = Cervisia::LocallyModified; } @@ -566,7 +566,7 @@ void UpdateFileItem::setRevTag(const TQString& rev, const TQString& tag) // tag date. const unsigned int dateTimeInSeconds(tagDateTimeUtc.toTime_t()); TQDateTime dateTime; - dateTime.setTime_t(dateTimeInSeconds, Qt::UTC); + dateTime.setTime_t(dateTimeInSeconds, TQt::UTC); const int localUtcOffset(dateTime.secsTo(tagDateTimeUtc)); const TQDateTime tagDateTimeLocal(tagDateTimeUtc.addSecs(localUtcOffset)); |