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);
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();

@ -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()

@ -33,7 +33,7 @@
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)
, partConfig(cfg)
{
TQSplitter *splitter = new TQSplitter(Qt::Vertical, this);
TQSplitter *splitter = new TQSplitter(TQt::Vertical, this);
setMainWidget(splitter);
tree = new LogTreeView(this);

@ -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);
}

@ -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);

@ -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);

@ -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

@ -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"));

@ -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);

@ -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());

@ -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));

@ -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 ||

@ -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);

@ -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;

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

@ -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();

@ -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);

@ -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);

@ -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"));

@ -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);

@ -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

@ -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");

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

@ -194,7 +194,7 @@ KBB::Error DomProcessor::parseDomBugList( const TQDomElement &topElement,
else if ( e.tagName() == "severity" )
severity = Bug::stringToSeverity( e.text() );
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 );
@ -397,7 +397,7 @@ bool DomProcessor::parseAttributeLine( const TQString &line, const TQString &key
TQDateTime DomProcessor::parseDate( const TQString &dateStr )
{
TQDateTime date = TQDateTime::fromString( dateStr, Qt::ISODate );
TQDateTime date = TQDateTime::fromString( dateStr, TQt::ISODate );
return date;
}

@ -57,9 +57,9 @@ CentralWidget::CentralWidget( const TQCString &initialPackage,
KDialog::spacingHint() ) )->setAutoAdd( true );
// Create TQSplitter children
m_vertSplitter = new TQSplitter( Qt::Vertical, this );
m_vertSplitter = new TQSplitter( TQt::Vertical, this );
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?
m_searchPane = new CWSearchWidget( m_horSplitter );
m_bugPane = new CWBugDetailsContainer( m_horSplitter );

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

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

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

@ -13,7 +13,7 @@
SeveritySelectDialog::SeveritySelectDialog(TQWidget *parent,const char *name) :
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 );
TQValueList<Bug::Severity> severities = Bug::severities();

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

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

@ -36,7 +36,7 @@ using namespace Diff2;
KompareSplitter::KompareSplitter( ViewSettings *settings, TQWidget * parent,
const char *name) :
TQSplitter(Qt::Horizontal, parent, name ),
TQSplitter(TQt::Horizontal, parent, name ),
m_settings( settings )
{
TQFrame *scrollFrame = new TQFrame( parent, "scrollFrame" );
@ -46,9 +46,9 @@ KompareSplitter::KompareSplitter( ViewSettings *settings, TQWidget * parent,
scrollFrame->setFrameStyle( TQFrame::NoFrame | TQFrame::Plain );
scrollFrame->setLineWidth(scrollFrame->style().pixelMetric(TQStyle::PM_DefaultFrameWidth));
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 );
m_hScroll = new TQScrollBar( Qt::Horizontal, scrollFrame );
m_hScroll = new TQScrollBar( TQt::Horizontal, scrollFrame );
pairlayout->addWidget( m_hScroll, 1, 0 );
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()];
TQWidget *w = 0;
bool upLeft;
if ( TQApplication::reverseLayout() && orient ==Qt::Horizontal ) {
if ( TQApplication::reverseLayout() && orient ==TQt::Horizontal ) {
int q = p + s->wid->width();
doMove( FALSE, q, id - 1, -1, (p > max), poss, ws );
doMove( TRUE, q, id, -1, (p < min), poss, ws );
@ -408,7 +408,7 @@ void KompareSplitter::repaintHandles()
void KompareSplitter::wheelEvent( TQWheelEvent* e )
{
// scroll lines...
if ( e->orientation() == Qt::Vertical )
if ( e->orientation() == TQt::Vertical )
{
if ( e->state() & TQt::ControlButton )
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->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_firstURLRequester = new KURLRequester( m_firstURLComboBox, m_firstGB );
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_secondURLRequester = new KURLRequester( m_secondURLComboBox, m_secondGB );
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 & ) ) );
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->insertStringList( TDEGlobal::charsets()->availableEncodingNames() );

@ -48,7 +48,7 @@ ViewPage::ViewPage( TQWidget* parent ) : PageBase( parent )
layout->setMargin( KDialog::marginHint() );
// add a groupbox
colorGroupBox = new TQGroupBox( 2, Qt::Horizontal, i18n( "Colors" ), page );
colorGroupBox = new TQGroupBox( 2, TQt::Horizontal, i18n( "Colors" ), page );
layout->addWidget( colorGroupBox );
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( "^Language-Team:.*" ), "Language-Team: Test Language <kde-i18n-doc@kde.org>" );
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" );
headerLines.gres( TQRegExp( "^PO-Revision-Date:.*" ), revisionDate );
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 << "# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.\n";

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

@ -320,7 +320,7 @@ class-token has to be a token representing either a class or a struct."
aslot nil)
)
((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 ;)
(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)
{
// default
setOrientation(Qt::Horizontal);
setOrientation(TQt::Horizontal);
appendView();
_active = _views.first();
@ -177,7 +177,7 @@ void MultiView::readViewConfig(TDEConfig* c,
int n = g->readNumEntry("Panels", 1);
setChildCount(n);
setOrientation( (g->readEntry("Orientation") == TQString("Horizontal")) ?
Qt::Horizontal : Qt::Vertical );
TQt::Horizontal : TQt::Vertical );
setSizes(g->readIntListEntry("PanelSizes"));
@ -208,7 +208,7 @@ void MultiView::saveViewConfig(TDEConfig* c,
g.writeEntry("Panels", childCount());
g.writeEntry("Orientation",
(orientation() == Qt::Horizontal) ?
(orientation() == TQt::Horizontal) ?
"Horizontal" : "Vertical");
g.writeEntry("PanelSizes", sizes());

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

@ -65,7 +65,7 @@ class Splitter: public TQSplitter
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();
protected:

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

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

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

@ -234,10 +234,10 @@ public:
* longest side of rectangle left for drawing
* Best: Choose split direction for all subitems of an area
* depending on longest side
* HAlternate:Qt::Horizontal at top; alternate direction on depth step
* VAlternate:Qt::Vertical at top; alternate direction on depth step
* Qt::Horizontal: Always horizontal split direction
* Qt::Vertical: Always vertical split direction
* HAlternate: Horizontal at top; alternate direction on depth step
* VAlternate: Vertical at top; alternate direction on depth step
* Horizontal: Always horizontal split direction
* Vertical: Always vertical split direction
*/
enum SplitMode { Bisection, Columns, Rows,
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_horizontal_distribute], alac_align_horizontal_distribute, true, i18n("Align Horizontal Distribute"));
setOrientation( Qt::Vertical );
setOrientation( TQt::Vertical );
setVerticalStretchable( true );
// gets called whenever a button in the toolbar is clicked

@ -916,14 +916,14 @@ TQString AssociationWidget::toString() {
}
void AssociationWidget::mouseDoubleClickEvent(TQMouseEvent * me) {
if (me->button() != Qt::RightButton && me->button() != Qt::LeftButton)
if (me->button() != TQt::RightButton && me->button() != TQt::LeftButton)
return;
int i = m_LinePath.onLinePath(me->pos());
if (i == -1) {
m_LinePath.setSelected(false);
return;
}
if (me->button() != Qt::LeftButton)
if (me->button() != TQt::LeftButton)
return;
const TQPoint mp(me->pos());
/* 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) {
m_nMovingPoint = -1;
//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;
TQPoint mep = me->pos();
// 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) {
if(me -> button() != Qt::RightButton && me->button() != Qt::LeftButton) {
if(me -> button() != TQt::RightButton && me->button() != TQt::LeftButton) {
setSelected( false );
return;
}
@ -2208,7 +2208,7 @@ void AssociationWidget::mouseReleaseEvent(TQMouseEvent * me) {
m_nMovingPoint = -1;
const TQPoint p = me->pos();
if (me->button() != Qt::RightButton) {
if (me->button() != TQt::RightButton) {
return;
}
@ -2500,7 +2500,7 @@ void AssociationWidget::checkPoints(const TQPoint &p) {
}
void AssociationWidget::mouseMoveEvent(TQMouseEvent* me) {
if( me->state() != Qt::LeftButton) {
if( me->state() != TQt::LeftButton) {
return;
}

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

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

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

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

@ -73,7 +73,7 @@ KPlayerPopupSliderAction::KPlayerPopupSliderAction (const TQString& text,
m_frame = new KPlayerPopupFrame;
m_frame -> setFrameStyle (TQFrame::PopupPanel | TQFrame::Raised);
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_slider -> setGeometry (m_frame -> contentsRect());
//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,
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)
{
setAutoSized (true);
@ -187,7 +187,7 @@ int KPlayerSliderAction::plug (TQWidget* widget, int index)
return result;
TDEToolBar* toolbar = (TDEToolBar*) widget;
//int id = getToolButtonID();
//kdDebug() << "Qt::Orientation: " << toolbar -> orientation() << "\n";
//kdDebug() << "TQt::Orientation: " << toolbar -> orientation() << "\n";
//m_slider -> reparent (toolbar, TQPoint());
//toolbar -> insertWidget (id, 0, m_slider, index);
//toolbar -> setItemAutoSized (id, true);
@ -199,7 +199,7 @@ int KPlayerSliderAction::plug (TQWidget* widget, int index)
//addContainer (toolbar, id);
//setupToolbar (toolbar -> orientation(), toolbar);
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()));
//if ( parentCollection() )
// parentCollection() -> connectHighlight (toolbar, this);
@ -216,7 +216,7 @@ void KPlayerSliderAction::unplug (TQWidget* widget)
if ( ! slider() || ! isPlugged() || widget != slider() -> parent() )
return;
//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()));
//m_slider -> reparent (0, TQPoint());
/*int index = findContainer (toolbar);
@ -226,9 +226,9 @@ void KPlayerSliderAction::unplug (TQWidget* widget)
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 -> 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") )
// setupToolbar (orientation, (TDEToolBar*) sender());
@ -264,7 +264,7 @@ void KPlayerSliderAction::orientationChanged (Qt::Orientation orientation)
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)
: TQSlider (300, 2200, 400, 1000, orientation, parent, name)
{
@ -283,7 +283,7 @@ TQSize KPlayerSlider::sizeHint() const
TQSize hint = TQSlider::sizeHint();
//CHANGED int length = kPlayerSettings() -> preferredSliderLength();
int length = 200;
if ( orientation() == Qt::Horizontal )
if ( orientation() == TQt::Horizontal )
{
if ( hint.width() < length )
hint.setWidth (length);
@ -302,7 +302,7 @@ TQSize KPlayerSlider::minimumSizeHint() const
TQSize hint = TQSlider::minimumSizeHint();
//CHANGED int length = kPlayerSettings() -> minimumSliderLength();
int length = 200;
if ( orientation() == Qt::Horizontal )
if ( orientation() == TQt::Horizontal )
{
if ( hint.width() < length )
hint.setWidth (length);
@ -315,7 +315,7 @@ TQSize KPlayerSlider::minimumSizeHint() const
return hint;
}
void KPlayerSlider::setOrientation (Qt::Orientation o)
void KPlayerSlider::setOrientation (TQt::Orientation o)
{
if ( o == orientation() )
return;
@ -332,14 +332,14 @@ void KPlayerSlider::setOrientation (Qt::Orientation o)
int KPlayerSlider::minValue (void) const
{
if ( orientation() == Qt::Horizontal )
if ( orientation() == TQt::Horizontal )
return TQSlider::minValue();
return - TQSlider::maxValue();
}
void KPlayerSlider::setMinValue (int minValue)
{
if ( orientation() == Qt::Horizontal )
if ( orientation() == TQt::Horizontal )
TQSlider::setMinValue (minValue);
else
TQSlider::setMaxValue (- minValue);
@ -347,14 +347,14 @@ void KPlayerSlider::setMinValue (int minValue)
int KPlayerSlider::maxValue (void) const
{
if ( orientation() == Qt::Horizontal )
if ( orientation() == TQt::Horizontal )
return TQSlider::maxValue();
return - TQSlider::minValue();
}
void KPlayerSlider::setMaxValue (int maxValue)
{
if ( orientation() == Qt::Horizontal )
if ( orientation() == TQt::Horizontal )
TQSlider::setMaxValue (maxValue);
else
TQSlider::setMinValue (- maxValue);
@ -383,14 +383,14 @@ void KPlayerSlider::setPageStep (int pageStep)
int KPlayerSlider::value (void) const
{
if ( orientation() == Qt::Horizontal )
if ( orientation() == TQt::Horizontal )
return TQSlider::value();
return - TQSlider::value();
}
void KPlayerSlider::setValue (int value, int)
{
if ( orientation() == Qt::Horizontal )
if ( orientation() == TQt::Horizontal )
TQSlider::setValue (value);
else
TQSlider::setValue (- value);

@ -31,7 +31,7 @@ class KPlayerSlider : public TQSlider
public:
/** 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.
*/
virtual ~KPlayerSlider();
@ -79,7 +79,7 @@ public:
void setup (int minValue, int maxValue, int value, int pageStep, int lineStep = 1);
/** Sets the slider orientation.
*/
virtual void setOrientation (Qt::Orientation);
virtual void setOrientation (TQt::Orientation);
signals:
/** Emitted when the slider value changes.
@ -195,7 +195,7 @@ public:
protected slots:
/** Changes the slider orientation when the toolbar orientation changes.
*/
void orientationChanged (Qt::Orientation);
void orientationChanged (TQt::Orientation);
protected:
/** The slider.

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

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

@ -42,7 +42,7 @@ void ToolBarStateArrow::mousePressWidget() {
}
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.
// The popup menu is activated upon RMB release.
return;
@ -76,7 +76,7 @@ void ToolBarStateArrow::mouseReleaseWidget() {
void ToolBarStateArrow::mouseReleaseEmpty() {
if (m_selectionRect.count() == 4) {
m_selectionRect.clear();
} else if (m_pMouseEvent->button() == Qt::RightButton) {
} else if (m_pMouseEvent->button() == TQt::RightButton) {
m_pUMLView->setMenu();
}
}

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

@ -85,7 +85,7 @@ void ToolBarStateMessages::setCurrentElement() {
void ToolBarStateMessages::mouseReleaseWidget() {
//TODO When an association between UMLObjects of invalid types is made, an error message
//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) {
cleanMessage();
return;

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

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

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

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

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

Loading…
Cancel
Save