true
diff --git a/languages/cpp/cppnewclassdlg.cpp b/languages/cpp/cppnewclassdlg.cpp
index c7e0ad13..f04db100 100644
--- a/languages/cpp/cppnewclassdlg.cpp
+++ b/languages/cpp/cppnewclassdlg.cpp
@@ -1171,7 +1171,7 @@ void CppNewClassDialog::setAccessForBase( TQString baseclass, TQString newAccess
void CppNewClassDialog::access_view_mouseButtonPressed( int button, TQListViewItem * item, const TQPoint &p, int /*c*/ )
{
- if ( item && ( ( button == Qt::LeftButton ) || ( button == Qt::RightButton ) ) && ( item->depth() > 1 ) )
+ if ( item && ( ( button == TQt::LeftButton ) || ( button == TQt::RightButton ) ) && ( item->depth() > 1 ) )
{
accessMenu->setItemEnabled( 1, true );
accessMenu->setItemEnabled( 2, true );
@@ -1196,7 +1196,7 @@ void CppNewClassDialog::access_view_mouseButtonPressed( int button, TQListViewIt
void CppNewClassDialog::methods_view_mouseButtonPressed( int button , TQListViewItem * item, const TQPoint&p , int /*c*/ )
{
- if ( item && ( button == Qt::RightButton ) && ( item->depth() > 1 ) && ( ! item->text( 1 ).isEmpty() ) )
+ if ( item && ( button == TQt::RightButton ) && ( item->depth() > 1 ) && ( ! item->text( 1 ).isEmpty() ) )
{
overMenu->exec( p );
}
diff --git a/languages/cpp/cppsupportpart.cpp b/languages/cpp/cppsupportpart.cpp
index e444bfea..c1cf0132 100644
--- a/languages/cpp/cppsupportpart.cpp
+++ b/languages/cpp/cppsupportpart.cpp
@@ -1393,13 +1393,13 @@ bool CppSupportPart::shouldSplitDocument(const KURL &url)
return false;
}
-Qt::Orientation CppSupportPart::splitOrientation() const
+TQt::Orientation CppSupportPart::splitOrientation() const
{
TQString o = splitHeaderSourceConfig()->orientation();
if ( o == "Vertical" )
- return Qt::Vertical;
+ return TQt::Vertical;
else
- return Qt::Horizontal;
+ return TQt::Horizontal;
}
void CppSupportPart::slotNewClass()
@@ -2082,9 +2082,9 @@ void CppSupportPart::splitHeaderSourceConfigStored( )
{
TQString o = splitHeaderSourceConfig()->orientation();
if ( o == "Vertical" )
- emit splitOrientationChanged( Qt::Vertical );
+ emit splitOrientationChanged( TQt::Vertical );
else if ( o == "Horizontal" )
- emit splitOrientationChanged( Qt::Horizontal );
+ emit splitOrientationChanged( TQt::Horizontal );
}
void CppSupportPart::removeWithReferences( const TQString & fileName )
diff --git a/languages/cpp/cppsupportpart.h b/languages/cpp/cppsupportpart.h
index 58e451ad..dc4d4451 100644
--- a/languages/cpp/cppsupportpart.h
+++ b/languages/cpp/cppsupportpart.h
@@ -289,7 +289,7 @@ protected:
virtual TQString formatClassName( const TQString &name );
virtual TQString unformatClassName( const TQString &name );
virtual bool shouldSplitDocument( const KURL &url );
- virtual Qt::Orientation splitOrientation() const;
+ virtual TQt::Orientation splitOrientation() const;
virtual void addMethod( ClassDom klass );
virtual void addAttribute( ClassDom klass );
diff --git a/languages/cpp/debugger/dbgpsdlg.cpp b/languages/cpp/debugger/dbgpsdlg.cpp
index 718345a1..63f6229b 100644
--- a/languages/cpp/debugger/dbgpsdlg.cpp
+++ b/languages/cpp/debugger/dbgpsdlg.cpp
@@ -73,7 +73,7 @@ Dbg_PS_Dialog::Dbg_PS_Dialog(TQWidget *parent, const char *name)
topLayout->addWidget(pids_);
pids_->setFont(TDEGlobalSettings::fixedFont());
- KButtonBox *buttonbox = new KButtonBox(this, Qt::Horizontal);
+ KButtonBox *buttonbox = new KButtonBox(this, TQt::Horizontal);
buttonbox->addStretch();
TQPushButton *ok = buttonbox->addButton(KStdGuiItem::ok());
TQPushButton *cancel = buttonbox->addButton(KStdGuiItem::cancel());
diff --git a/languages/cpp/debugger/dbgtoolbar.cpp b/languages/cpp/debugger/dbgtoolbar.cpp
index 9fa8289d..f7d23b0c 100644
--- a/languages/cpp/debugger/dbgtoolbar.cpp
+++ b/languages/cpp/debugger/dbgtoolbar.cpp
@@ -107,7 +107,7 @@ void DbgMoveHandle::mousePressEvent(TQMouseEvent *e)
if (moving_)
return;
- if (e->button() == Qt::RightButton) {
+ if (e->button() == TQt::RightButton) {
TDEPopupMenu *menu = new TDEPopupMenu(this);
menu->insertTitle(i18n("Debug Toolbar"));
menu->insertItem(i18n("Dock to Panel"),
@@ -233,13 +233,13 @@ void DbgDocker::mousePressEvent(TQMouseEvent *e)
return;
switch (e->button()) {
- case Qt::LeftButton:
+ case TQt::LeftButton:
{
// Not really a click, but it'll hold for the time being !!!
emit clicked();
break;
}
- case Qt::RightButton:
+ case TQt::RightButton:
{
TDEPopupMenu* menu = new TDEPopupMenu(this);
menu->insertTitle(i18n("Debug Toolbar"));
diff --git a/languages/cpp/debugger/gdbbreakpointwidget.cpp b/languages/cpp/debugger/gdbbreakpointwidget.cpp
index 47904817..c777226a 100644
--- a/languages/cpp/debugger/gdbbreakpointwidget.cpp
+++ b/languages/cpp/debugger/gdbbreakpointwidget.cpp
@@ -686,7 +686,7 @@ void GDBBreakpointWidget::slotRemoveAllBreakpoints()
void GDBBreakpointWidget::slotRowDoubleClicked(int row, int col, int btn, const TQPoint &)
{
- if ( btn == Qt::LeftButton )
+ if ( btn == TQt::LeftButton )
{
// kdDebug(9012) << "in slotRowSelected row=" << row << endl;
BreakpointTableRow* btr = (BreakpointTableRow *) m_table->item(row, Control);
diff --git a/languages/ruby/app_templates/kapp/app.rb b/languages/ruby/app_templates/kapp/app.rb
index 37a00d8b..af807fe9 100644
--- a/languages/ruby/app_templates/kapp/app.rb
+++ b/languages/ruby/app_templates/kapp/app.rb
@@ -181,13 +181,13 @@ class %{APPNAMESC} < KDE::MainWindow
if @printer.nil? then @printer = KDE::Printer.new end
if @printer.setup(self)
# setup the printer. with Qt, you always "print" to a
- # Qt::Painter.. whether the output medium is a pixmap, a screen,
+ # TQt::Painter.. whether the output medium is a pixmap, a screen,
# or paper
- p = Qt::Painter.new
+ p = TQt::Painter.new
p.begin(@printer)
# we let our view do the actual printing
- metrics = Qt::PaintDeviceMetrics.new(@printer)
+ metrics = TQt::PaintDeviceMetrics.new(@printer)
@view.print(p, metrics.height(), metrics.width())
# and send the result to the printer
diff --git a/languages/ruby/app_templates/kapp/appview.rb b/languages/ruby/app_templates/kapp/appview.rb
index e75ca6bc..3fed1ce1 100644
--- a/languages/ruby/app_templates/kapp/appview.rb
+++ b/languages/ruby/app_templates/kapp/appview.rb
@@ -10,7 +10,7 @@
@author %{AUTHOR} <%{EMAIL}>
@version %{VERSION}
=end
-class %{APPNAMESC}View < Qt::Widget
+class %{APPNAMESC}View < TQt::Widget
#
# Use this signal to change the content of the statusbar
@@ -32,7 +32,7 @@ class %{APPNAMESC}View < Qt::Widget
@dcop = %{APPNAMESC}Iface.new(self)
# setup our layout manager to automatically add our widgets
- top_layout = Qt::HBoxLayout.new(self)
+ top_layout = TQt::HBoxLayout.new(self)
top_layout.setAutoAdd(true)
# we want to look for all components that satisfy our needs. the
diff --git a/languages/ruby/app_templates/kapp/pref.rb b/languages/ruby/app_templates/kapp/pref.rb
index 98669ad2..cf8339e9 100644
--- a/languages/ruby/app_templates/kapp/pref.rb
+++ b/languages/ruby/app_templates/kapp/pref.rb
@@ -15,24 +15,24 @@ class %{APPNAMESC}Preferences < KDE::DialogBase
end
end
-class %{APPNAMESC}PrefPageOne < Qt::Frame
+class %{APPNAMESC}PrefPageOne < TQt::Frame
def initialize(parent)
super(parent)
- layout = Qt::HBoxLayout.new(self)
+ layout = TQt::HBoxLayout.new(self)
layout.setAutoAdd(true)
- Qt::Label.new(i18n("Add something here"), self)
+ TQt::Label.new(i18n("Add something here"), self)
end
end
-class %{APPNAMESC}PrefPageTwo < Qt::Frame
+class %{APPNAMESC}PrefPageTwo < TQt::Frame
def initialize(parent)
super(parent)
- layout = Qt::HBoxLayout.new(self)
+ layout = TQt::HBoxLayout.new(self)
layout.setAutoAdd(true)
- Qt::Label.new(i18n("Add something here"), self)
+ TQt::Label.new(i18n("Add something here"), self)
end
end
diff --git a/languages/ruby/app_templates/qtruby/app.rb b/languages/ruby/app_templates/qtruby/app.rb
index da817328..68156edd 100755
--- a/languages/ruby/app_templates/qtruby/app.rb
+++ b/languages/ruby/app_templates/qtruby/app.rb
@@ -2,8 +2,8 @@
require 'Qt'
-app = Qt::Application.new(ARGV)
-widget = Qt::Widget.new
+app = TQt::Application.new(ARGV)
+widget = TQt::Widget.new
widget.setGeometry(50, 500, 400, 400)
widget.caption = "Hello World!"
diff --git a/languages/ruby/app_templates/qtrubyapp/main.rb b/languages/ruby/app_templates/qtrubyapp/main.rb
index 6f4bceae..431ea442 100644
--- a/languages/ruby/app_templates/qtrubyapp/main.rb
+++ b/languages/ruby/app_templates/qtrubyapp/main.rb
@@ -1,7 +1,7 @@
require 'Qt'
require '%{APPNAMELC}.rb'
-a = Qt::Application.new( ARGV )
+a = TQt::Application.new( ARGV )
mw = %{APPNAMESC}.new
mw.caption = "%{APPNAMESC}"
mw.show
diff --git a/languages/ruby/app_templates/qtrubyapp/qtrubyapp.rb b/languages/ruby/app_templates/qtrubyapp/qtrubyapp.rb
index 26b0b378..df98824d 100644
--- a/languages/ruby/app_templates/qtrubyapp/qtrubyapp.rb
+++ b/languages/ruby/app_templates/qtrubyapp/qtrubyapp.rb
@@ -1,4 +1,4 @@
-class %{APPNAMESC} < Qt::MainWindow
+class %{APPNAMESC} < TQt::MainWindow
Q_SLOTS 'newDoc()',
'choose()',
@@ -11,61 +11,61 @@ class %{APPNAMESC} < Qt::MainWindow
def initialize()
super( nil, "%{APPNAMESC}", WDestructiveClose )
- @printer = Qt::Printer.new
+ @printer = TQt::Printer.new
- fileTools = Qt::ToolBar.new( self, "file operations" )
+ fileTools = TQt::ToolBar.new( self, "file operations" )
fileTools.setLabel( tr("File Operations") )
- openIcon = Qt::Pixmap.new( "fileopen.xpm" )
- fileOpen = Qt::ToolButton.new( Qt::IconSet.new(openIcon), tr("Open File"), nil,
+ openIcon = TQt::Pixmap.new( "fileopen.xpm" )
+ fileOpen = TQt::ToolButton.new( TQt::IconSet.new(openIcon), tr("Open File"), nil,
self, SLOT('choose()'), fileTools, "open file" )
- saveIcon = Qt::Pixmap.new( "filesave.xpm" )
- fileSave = Qt::ToolButton.new( Qt::IconSet.new(saveIcon), tr("Save File"), nil,
+ saveIcon = TQt::Pixmap.new( "filesave.xpm" )
+ fileSave = TQt::ToolButton.new( TQt::IconSet.new(saveIcon), tr("Save File"), nil,
self, SLOT('save()'), fileTools, "save file" )
- printIcon = Qt::Pixmap.new( "fileprint.xpm" )
- filePrint = Qt::ToolButton.new( Qt::IconSet.new(printIcon), tr("Print File"), nil,
+ printIcon = TQt::Pixmap.new( "fileprint.xpm" )
+ filePrint = TQt::ToolButton.new( TQt::IconSet.new(printIcon), tr("Print File"), nil,
self, SLOT('print()'), fileTools, "print file" )
- Qt::WhatsThis.whatsThisButton( fileTools )
+ TQt::WhatsThis.whatsThisButton( fileTools )
fileOpenText = tr(' ' +
"Click this button to open a new file.
" +
"You can also select the Open command " +
"from the File menu.
")
- Qt::WhatsThis.add( fileOpen, fileOpenText )
+ TQt::WhatsThis.add( fileOpen, fileOpenText )
- Qt::MimeSourceFactory.defaultFactory().setPixmap( "fileopen", openIcon )
+ TQt::MimeSourceFactory.defaultFactory().setPixmap( "fileopen", openIcon )
fileSaveText = tr("Click this button to save the file you " +
"are editing. You will be prompted for a file name.\n" +
"You can also select the Save command " +
"from the File menu.
")
- Qt::WhatsThis.add( fileSave, fileSaveText )
+ TQt::WhatsThis.add( fileSave, fileSaveText )
filePrintText = tr("Click this button to print the file you " +
"are editing.\n You can also select the Print " +
"command from the File menu.")
- Qt::WhatsThis.add( filePrint, filePrintText )
+ TQt::WhatsThis.add( filePrint, filePrintText )
- file = Qt::PopupMenu.new( self )
+ file = TQt::PopupMenu.new( self )
menuBar().insertItem( tr("&File"), file )
- file.insertItem( tr("&New"), self, SLOT('newDoc()'), Qt::KeySequence.new(CTRL+Key_N) )
+ file.insertItem( tr("&New"), self, SLOT('newDoc()'), TQt::KeySequence.new(CTRL+Key_N) )
- id = file.insertItem( Qt::IconSet.new(openIcon), tr("&Open..."),
- self, SLOT('choose()'), Qt::KeySequence.new(CTRL+Key_O) )
+ id = file.insertItem( TQt::IconSet.new(openIcon), tr("&Open..."),
+ self, SLOT('choose()'), TQt::KeySequence.new(CTRL+Key_O) )
file.setWhatsThis( id, fileOpenText )
- id = file.insertItem( Qt::IconSet.new(saveIcon), tr("&Save"),
- self, SLOT('save()'), Qt::KeySequence.new(CTRL+Key_S) )
+ id = file.insertItem( TQt::IconSet.new(saveIcon), tr("&Save"),
+ self, SLOT('save()'), TQt::KeySequence.new(CTRL+Key_S) )
file.setWhatsThis( id, fileSaveText )
id = file.insertItem( tr("Save &As..."), self, SLOT('saveAs()') )
@@ -73,27 +73,27 @@ class %{APPNAMESC} < Qt::MainWindow
file.insertSeparator()
- id = file.insertItem( Qt::IconSet.new(printIcon), tr("&Print..."),
- self, SLOT('print()'), Qt::KeySequence.new(CTRL+Key_P) )
+ id = file.insertItem( TQt::IconSet.new(printIcon), tr("&Print..."),
+ self, SLOT('print()'), TQt::KeySequence.new(CTRL+Key_P) )
file.setWhatsThis( id, filePrintText )
file.insertSeparator()
- file.insertItem( tr("&Close"), self, SLOT('close()'), Qt::KeySequence.new(CTRL+Key_W) )
+ file.insertItem( tr("&Close"), self, SLOT('close()'), TQt::KeySequence.new(CTRL+Key_W) )
- file.insertItem( tr("&Quit"), $tqApp, SLOT( 'closeAllWindows()' ), Qt::KeySequence.new(CTRL+Key_Q) )
+ file.insertItem( tr("&Quit"), $tqApp, SLOT( 'closeAllWindows()' ), TQt::KeySequence.new(CTRL+Key_Q) )
menuBar().insertSeparator()
- help = Qt::PopupMenu.new( self )
+ help = TQt::PopupMenu.new( self )
menuBar().insertItem( tr("&Help"), help )
- help.insertItem( tr("&About"), self, SLOT('about()'), Qt::KeySequence.new(Key_F1) )
+ help.insertItem( tr("&About"), self, SLOT('about()'), TQt::KeySequence.new(Key_F1) )
help.insertItem( tr("About &Qt"), self, SLOT('aboutQt()') )
help.insertSeparator()
- help.insertItem( tr("What's &This"), self, SLOT('whatsThis()'), Qt::KeySequence.new(SHIFT+Key_F1) )
+ help.insertItem( tr("What's &This"), self, SLOT('whatsThis()'), TQt::KeySequence.new(SHIFT+Key_F1) )
- @e = Qt::TextEdit.new( self, "editor" )
+ @e = TQt::TextEdit.new( self, "editor" )
@e.setFocus()
setCentralWidget( @e )
statusBar().message( tr("Ready"), 2000 )
@@ -110,7 +110,7 @@ class %{APPNAMESC} < Qt::MainWindow
end
def choose()
- fn = Qt::FileDialog.getOpenFileName( nil, nil,
+ fn = TQt::FileDialog.getOpenFileName( nil, nil,
self)
if !fn.nil?
load( fn )
@@ -121,12 +121,12 @@ class %{APPNAMESC} < Qt::MainWindow
def load( filename )
- f = Qt::File.new( filename )
- if !f.open( Qt::IO_ReadOnly )
+ f = TQt::File.new( filename )
+ if !f.open( TQt::IO_ReadOnly )
return
end
- ts = Qt::TextStream.new( f )
+ ts = TQt::TextStream.new( f )
@e.setText( ts.read() )
@e.setModified( false )
setCaption( filename )
@@ -141,14 +141,14 @@ class %{APPNAMESC} < Qt::MainWindow
end
text = @e.text()
- f = Qt::File.new( @filename )
- if !f.open( Qt::IO_WriteOnly )
+ f = TQt::File.new( @filename )
+ if !f.open( TQt::IO_WriteOnly )
statusBar().message( tr("Could not write to %s" % @filename),
2000 )
return
end
- t = Qt::TextStream.new( f )
+ t = TQt::TextStream.new( f )
t << text
f.close()
@@ -161,7 +161,7 @@ class %{APPNAMESC} < Qt::MainWindow
def saveAs()
- fn = Qt::FileDialog.getSaveFileName( nil, nil,
+ fn = TQt::FileDialog.getSaveFileName( nil, nil,
self )
if !fn.nil?
@filename = fn
@@ -173,13 +173,13 @@ class %{APPNAMESC} < Qt::MainWindow
def print()
- # ###### Rewrite to use Qt::SimpleRichText to print here as well
+ # ###### Rewrite to use TQt::SimpleRichText to print here as well
margin = 10
pageNo = 1
if @printer.setup(self) # @printer dialog
statusBar().message( tr("Printing...") )
- p = Qt::Painter.new
+ p = TQt::Painter.new
if !p.begin( @printer ) # paint on @printer
return
end
@@ -187,7 +187,7 @@ class %{APPNAMESC} < Qt::MainWindow
p.setFont( @e.font() )
yPos = 0 # y-position for each line
fm = p.fontMetrics()
- metrics = Qt::PaintDeviceMetrics.new( @printer ) # need width/height
+ metrics = TQt::PaintDeviceMetrics.new( @printer ) # need width/height
# of @printer surface
for i in 0...@e.lines() do
if margin + yPos > metrics.height() - margin
@@ -220,7 +220,7 @@ class %{APPNAMESC} < Qt::MainWindow
return
end
- case Qt::MessageBox.information( self, tr("Qt Application Example"),
+ case TQt::MessageBox.information( self, tr("Qt Application Example"),
tr("Do you want to save the changes" +
" to the document?"),
tr("Yes"), tr("No"), tr("Cancel"),
@@ -240,14 +240,14 @@ class %{APPNAMESC} < Qt::MainWindow
private
def about()
- Qt::MessageBox.about( self, tr("Qt Application Example"),
+ TQt::MessageBox.about( self, tr("Qt Application Example"),
tr("This example demonstrates simple use of " +
- "Qt::MainWindow,\nQt::MenuBar and Qt::ToolBar."))
+ "TQt::MainWindow,\nTQt::MenuBar and TQt::ToolBar."))
end
def aboutQt()
- Qt::MessageBox.aboutQt( self, tr("Qt Application Example") )
+ TQt::MessageBox.aboutQt( self, tr("Qt Application Example") )
end
end
diff --git a/languages/ruby/debugger/dbgpsdlg.cpp b/languages/ruby/debugger/dbgpsdlg.cpp
index 2aa67f51..b012f0be 100644
--- a/languages/ruby/debugger/dbgpsdlg.cpp
+++ b/languages/ruby/debugger/dbgpsdlg.cpp
@@ -71,7 +71,7 @@ Dbg_PS_Dialog::Dbg_PS_Dialog(TQWidget *parent, const char *name)
topLayout->addWidget(pids_, 5);
pids_->setFont(TDEGlobalSettings::fixedFont());
- KButtonBox *buttonbox = new KButtonBox(this, Qt::Horizontal, 5);
+ KButtonBox *buttonbox = new KButtonBox(this, TQt::Horizontal, 5);
TQPushButton *ok = buttonbox->addButton(KStdGuiItem::ok());
buttonbox->addStretch();
TQPushButton *cancel = buttonbox->addButton(KStdGuiItem::cancel());
diff --git a/languages/ruby/debugger/dbgtoolbar.cpp b/languages/ruby/debugger/dbgtoolbar.cpp
index 670ee9b4..07c0b415 100644
--- a/languages/ruby/debugger/dbgtoolbar.cpp
+++ b/languages/ruby/debugger/dbgtoolbar.cpp
@@ -113,7 +113,7 @@ void DbgMoveHandle::mousePressEvent(TQMouseEvent *e)
if (moving_)
return;
- if (e->button() == Qt::RightButton) {
+ if (e->button() == TQt::RightButton) {
TDEPopupMenu *menu = new TDEPopupMenu(this);
menu->insertTitle(i18n("Debug Toolbar"));
menu->insertItem(i18n("Dock to Panel"),
@@ -232,13 +232,13 @@ void DbgDocker::mousePressEvent(TQMouseEvent *e)
return;
switch (e->button()) {
- case Qt::LeftButton:
+ case TQt::LeftButton:
{
// Not really a click, but it'll hold for the time being !!!
emit clicked();
break;
}
- case Qt::RightButton:
+ case TQt::RightButton:
{
TDEPopupMenu* menu = new TDEPopupMenu(this);
menu->insertTitle(i18n("Debug Toolbar"));
diff --git a/languages/ruby/debugger/debuggee.rb b/languages/ruby/debugger/debuggee.rb
index 38e2dea7..75491f7d 100644
--- a/languages/ruby/debugger/debuggee.rb
+++ b/languages/ruby/debugger/debuggee.rb
@@ -269,7 +269,7 @@ class Context
for c in ary
str = debug_inspect(obj.module_eval(c))
if c.to_s != str &&
- str !~ /^Qt::|^KDE::/ && c.to_s !~ /@@classes$|@@cpp_names$|@@idclass$|@@debug_level$/ &&
+ str !~ /^TQt::|^KDE::/ && c.to_s !~ /@@classes$|@@cpp_names$|@@idclass$|@@debug_level$/ &&
c.to_s !~ /^DCOPMeta$|^Meta$|SCRIPT_LINES__|TRUE|FALSE|NIL|MatchingData/ &&
c.to_s !~ /^PLATFORM$|^RELEASE_DATE$|^VERSION$|SilentClient|SilentObject/ &&
c.to_s !~ /^Client$|^Context$|^DEBUG_LAST_CMD$|^MUTEX$|^Mutex$|^SimpleDelegater$|^Delegater$/ &&
diff --git a/languages/ruby/debugger/rdbbreakpointwidget.cpp b/languages/ruby/debugger/rdbbreakpointwidget.cpp
index f8e86ad7..0c1fea0b 100644
--- a/languages/ruby/debugger/rdbbreakpointwidget.cpp
+++ b/languages/ruby/debugger/rdbbreakpointwidget.cpp
@@ -634,7 +634,7 @@ void RDBBreakpointWidget::slotRemoveAllBreakpoints()
void RDBBreakpointWidget::slotRowDoubleClicked(int row, int col, int btn, const TQPoint &)
{
- if ( btn == Qt::LeftButton )
+ if ( btn == TQt::LeftButton )
{
// kdDebug(9012) << "in slotRowSelected row=" << row << endl;
BreakpointTableRow* btr = (BreakpointTableRow *) m_table->item(row, Control);
diff --git a/lib/interfaces/kdevlanguagesupport.cpp b/lib/interfaces/kdevlanguagesupport.cpp
index aa5b560c..a5609cf9 100644
--- a/lib/interfaces/kdevlanguagesupport.cpp
+++ b/lib/interfaces/kdevlanguagesupport.cpp
@@ -68,9 +68,9 @@ bool KDevLanguageSupport::shouldSplitDocument(const KURL &url)
return false;
}
-Qt::Orientation KDevLanguageSupport::splitOrientation() const
+TQt::Orientation KDevLanguageSupport::splitOrientation() const
{
- return Qt::Vertical;
+ return TQt::Vertical;
}
void KDevLanguageSupport::addClass()
diff --git a/lib/interfaces/kdevlanguagesupport.h b/lib/interfaces/kdevlanguagesupport.h
index f65dcefe..59b160b2 100644
--- a/lib/interfaces/kdevlanguagesupport.h
+++ b/lib/interfaces/kdevlanguagesupport.h
@@ -135,8 +135,8 @@ public:
virtual bool shouldSplitDocument( const KURL &url );
/**Returns the language parts Split View orientation.
- By default Qt::Vertical.*/
- virtual Qt::Orientation splitOrientation() const;
+ By default TQt::Vertical.*/
+ virtual TQt::Orientation splitOrientation() const;
/**Opens a "New class" dialog and adds the configured class to the sources.
Define NewClass feature if you reimplement this method.*/
@@ -255,7 +255,7 @@ signals:
void addedSourceInfo( const TQString& fileName );
/**Emitted when the language part changes the Split View orientation.*/
- void splitOrientationChanged( Qt::Orientation orientation );
+ void splitOrientationChanged( TQt::Orientation orientation );
};
#endif
diff --git a/lib/widgets/kdevtabwidget.cpp b/lib/widgets/kdevtabwidget.cpp
index cadff807..75682116 100644
--- a/lib/widgets/kdevtabwidget.cpp
+++ b/lib/widgets/kdevtabwidget.cpp
@@ -50,7 +50,7 @@ void KTabBar::closeOthersSlot()
void KTabBar::mousePressEvent(TQMouseEvent *e)
{
- if(e->button() == Qt::RightButton) {
+ if(e->button() == TQt::RightButton) {
TQTab *tab = selectTab(e->pos() );
if( tab == 0L ) return;
diff --git a/lib/widgets/propeditor/pdateedit.cpp b/lib/widgets/propeditor/pdateedit.cpp
index ed83dbb2..113ec325 100644
--- a/lib/widgets/propeditor/pdateedit.cpp
+++ b/lib/widgets/propeditor/pdateedit.cpp
@@ -46,7 +46,7 @@ void PDateEdit::drawViewer(TQPainter* p, const TQColorGroup& cg, const TQRect& r
p->setPen(TQt::NoPen);
p->setBrush(cg.background());
p->drawRect(r);
- p->drawText(r, TQt::AlignLeft | TQt::AlignVCenter | TQt::SingleLine, value.toDate().toString(Qt::LocalDate));
+ p->drawText(r, TQt::AlignLeft | TQt::AlignVCenter | TQt::SingleLine, value.toDate().toString(TQt::LocalDate));
}
void PDateEdit::setValue(const TQVariant& value, bool emitChange)
diff --git a/lib/widgets/propeditor/pdatetimeedit.cpp b/lib/widgets/propeditor/pdatetimeedit.cpp
index 3b8993d3..55a0bdcc 100644
--- a/lib/widgets/propeditor/pdatetimeedit.cpp
+++ b/lib/widgets/propeditor/pdatetimeedit.cpp
@@ -45,7 +45,7 @@ void PDateTimeEdit::drawViewer(TQPainter* p, const TQColorGroup& cg, const TQRec
p->setPen(TQt::NoPen);
p->setBrush(cg.background());
p->drawRect(r);
- p->drawText(r, TQt::AlignLeft | TQt::AlignVCenter | TQt::SingleLine, value.toDateTime().toString(Qt::LocalDate));
+ p->drawText(r, TQt::AlignLeft | TQt::AlignVCenter | TQt::SingleLine, value.toDateTime().toString(TQt::LocalDate));
}
void PDateTimeEdit::setValue(const TQVariant& value, bool emitChange)
diff --git a/lib/widgets/qcomboview.cpp b/lib/widgets/qcomboview.cpp
index 9e564326..1d959d13 100644
--- a/lib/widgets/qcomboview.cpp
+++ b/lib/widgets/qcomboview.cpp
@@ -466,7 +466,7 @@ void QComboView::paintEvent( TQPaintEvent * )
void QComboView::mousePressEvent( TQMouseEvent *e )
{
- if ( e->button() != Qt::LeftButton )
+ if ( e->button() != TQt::LeftButton )
return;
if ( d->discardNextMousePress ) {
d->discardNextMousePress = FALSE;
@@ -917,7 +917,7 @@ bool QComboView::eventFilter( TQObject *object, TQEvent *event )
}
}
}
- } else if ((e->state() & ( Qt::RightButton | Qt::LeftButton | Qt::MidButton ) ) == 0 &&
+ } else if ((e->state() & ( TQt::RightButton | TQt::LeftButton | TQt::MidButton ) ) == 0 &&
style().styleHint(TQStyle::SH_ComboBox_ListMouseTracking, this)) {
// tqWarning("event filter:: emu");
TQWidget *mouseW = TQApplication::widgetAt( e->globalPos(), TRUE );
diff --git a/parts/classview/hierarchydlg.cpp b/parts/classview/hierarchydlg.cpp
index c8761861..32d05059 100644
--- a/parts/classview/hierarchydlg.cpp
+++ b/parts/classview/hierarchydlg.cpp
@@ -51,7 +51,7 @@ HierarchyDialog::HierarchyDialog( ClassViewPart *part )
TQPushButton *save_button = new KPushButton(KStdGuiItem::save(), this);
TQPushButton *refresh_button = new KPushButton(i18n("Refresh"), this);
- TQSplitter *splitter = new TQSplitter(Qt::Vertical, this);
+ TQSplitter *splitter = new TQSplitter(TQt::Vertical, this);
digraph = new DigraphView(splitter, "digraph view");
// member_tree = new ClassToolWidget(part, splitter);
diff --git a/parts/ctags2/ctags2_widget.cpp b/parts/ctags2/ctags2_widget.cpp
index b9b54d97..4225e83a 100644
--- a/parts/ctags2/ctags2_widget.cpp
+++ b/parts/ctags2/ctags2_widget.cpp
@@ -148,7 +148,7 @@ void CTags2Widget::updateDBDateLabel( )
TQFileInfo tagsdb(tagFiles[0]);
if ( tagsdb.exists() )
{
- datetime_label->setText( tagsdb.created().date().toString( Qt::ISODate ) );
+ datetime_label->setText( tagsdb.created().date().toString( TQt::ISODate ) );
}
else
{
diff --git a/parts/documentation/bookmarkview.cpp b/parts/documentation/bookmarkview.cpp
index f626e246..4ec63094 100644
--- a/parts/documentation/bookmarkview.cpp
+++ b/parts/documentation/bookmarkview.cpp
@@ -268,7 +268,7 @@ void BookmarkView::addBookmark(const TQString &title, const KURL &url)
void BookmarkView::itemMouseButtonPressed(int button, TQListViewItem *item, const TQPoint &pos, int // c
)
{
- if ((button != Qt::RightButton) || (!item))
+ if ((button != TQt::RightButton) || (!item))
return;
DocumentationItem *docItem = dynamic_cast(item);
if (!docItem)
diff --git a/parts/documentation/contentsview.cpp b/parts/documentation/contentsview.cpp
index 3707f318..3c07369c 100644
--- a/parts/documentation/contentsview.cpp
+++ b/parts/documentation/contentsview.cpp
@@ -73,7 +73,7 @@ void ContentsView::itemExecuted(TQListViewItem *item, const TQPoint &/*p*/, int
void ContentsView::itemMouseButtonPressed(int button, TQListViewItem *item, const TQPoint &pos, int // c
)
{
- if ((button != Qt::RightButton) || (!item))
+ if ((button != TQt::RightButton) || (!item))
return;
DocumentationItem *docItem = dynamic_cast(item);
if (!docItem)
diff --git a/parts/documentation/find_documentation.cpp b/parts/documentation/find_documentation.cpp
index ebddcd4c..85365f69 100644
--- a/parts/documentation/find_documentation.cpp
+++ b/parts/documentation/find_documentation.cpp
@@ -75,7 +75,7 @@ FindDocumentation::~FindDocumentation()
void FindDocumentation::buttonPressedOnItem( int button, TQListViewItem * item, const TQPoint & pos, int // c
)
{
- if ((button != Qt::RightButton) || (!item))
+ if ((button != TQt::RightButton) || (!item))
return;
DocumentationItem *docItem = dynamic_cast(item);
if (!docItem)
diff --git a/parts/documentation/indexview.cpp b/parts/documentation/indexview.cpp
index 1b2e67ba..f414e288 100644
--- a/parts/documentation/indexview.cpp
+++ b/parts/documentation/indexview.cpp
@@ -162,7 +162,7 @@ bool IndexView::eventFilter(TQObject *watched, TQEvent *e)
void IndexView::itemMouseButtonPressed(int button, TQListBoxItem *item, const TQPoint &pos)
{
- if ((button != Qt::RightButton) || (!item))
+ if ((button != TQt::RightButton) || (!item))
return;
IndexItem *docItem = dynamic_cast(item);
if (!docItem)
diff --git a/parts/documentation/searchview.cpp b/parts/documentation/searchview.cpp
index 67dca0ed..080254ae 100644
--- a/parts/documentation/searchview.cpp
+++ b/parts/documentation/searchview.cpp
@@ -303,7 +303,7 @@ void SearchView::executed(TQListViewItem *item)
void SearchView::itemMouseButtonPressed(int button, TQListViewItem *item, const TQPoint &pos, int // c
)
{
- if ((button != Qt::RightButton) || (!item))
+ if ((button != TQt::RightButton) || (!item))
return;
DocumentationItem *docItem = dynamic_cast(item);
if (!docItem)
diff --git a/parts/fileselector/fileselector_widget.cpp b/parts/fileselector/fileselector_widget.cpp
index e9b277f2..4925ec72 100644
--- a/parts/fileselector/fileselector_widget.cpp
+++ b/parts/fileselector/fileselector_widget.cpp
@@ -585,7 +585,7 @@ KFSConfigPage::KFSConfigPage( TQWidget *parent, const char *name, KDevFileSelect
lo->setSpacing( spacing );
// Toolbar - a lot for a little...
- TQGroupBox *gbToolbar = new TQGroupBox( 1, Qt::Vertical, i18n("Toolbar"), this );
+ TQGroupBox *gbToolbar = new TQGroupBox( 1, TQt::Vertical, i18n("Toolbar"), this );
acSel = new TDEActionSelector( gbToolbar );
acSel->setAvailableLabel( i18n("A&vailable actions:") );
acSel->setSelectedLabel( i18n("S&elected actions:") );
@@ -596,7 +596,7 @@ KFSConfigPage::KFSConfigPage( TQWidget *parent, const char *name, KDevFileSelect
connect( acSel, TQT_SIGNAL( movedDown( TQListBoxItem * ) ), this, TQT_SLOT( slotChanged() ) );
// Sync
- TQGroupBox *gbSync = new TQGroupBox( 1, Qt::Horizontal, i18n("Auto Synchronization"), this );
+ TQGroupBox *gbSync = new TQGroupBox( 1, TQt::Horizontal, i18n("Auto Synchronization"), this );
cbSyncActive = new TQCheckBox( i18n("When a docu&ment becomes active"), gbSync );
cbSyncOpen = new TQCheckBox( i18n("When a document is o&pened"), gbSync );
cbSyncShow = new TQCheckBox( i18n("When the file selector becomes visible"), gbSync );
@@ -621,7 +621,7 @@ KFSConfigPage::KFSConfigPage( TQWidget *parent, const char *name, KDevFileSelect
connect( sbFilterHistLength, TQT_SIGNAL( valueChanged ( int ) ), this, TQT_SLOT( slotChanged() ) );
// Session
- TQGroupBox *gbSession = new TQGroupBox( 1, Qt::Horizontal, i18n("Session"), this );
+ TQGroupBox *gbSession = new TQGroupBox( 1, TQt::Horizontal, i18n("Session"), this );
cbSesLocation = new TQCheckBox( i18n("Restore loca&tion"), gbSession );
cbSesFilter = new TQCheckBox( i18n("Restore last f&ilter"), gbSession );
lo->addWidget( gbSession );
diff --git a/parts/outputviews/makewidget.cpp b/parts/outputviews/makewidget.cpp
index 029efdc6..78b3a386 100644
--- a/parts/outputviews/makewidget.cpp
+++ b/parts/outputviews/makewidget.cpp
@@ -389,7 +389,7 @@ void MakeWidget::prevError()
void MakeWidget::contentsMouseReleaseEvent( TQMouseEvent* e )
{
TQTextEdit::contentsMouseReleaseEvent(e);
- if ( e->button() != Qt::LeftButton )
+ if ( e->button() != TQt::LeftButton )
return;
searchItem(paragraphAt(e->pos()));
}
diff --git a/parts/replace/replaceview.cpp b/parts/replace/replaceview.cpp
index a85b0818..7a797414 100644
--- a/parts/replace/replaceview.cpp
+++ b/parts/replace/replaceview.cpp
@@ -112,11 +112,11 @@ void ReplaceView::slotMousePressed(int btn, TQListViewItem* i, const TQPoint& po
if ( ReplaceItem * item = dynamic_cast( i ) )
{
- if ( btn == Qt::RightButton )
+ if ( btn == TQt::RightButton )
{
// popup menu?
}
- else if ( btn == Qt::LeftButton )
+ else if ( btn == TQt::LeftButton )
{
// map pos to item/column and call ReplacetItem::activate(pos)
item->activate( col, viewport()->mapFromGlobal( pos ) - TQPoint( 0, itemRect(item).top() ) );
diff --git a/parts/texttools/texttoolswidget.cpp b/parts/texttools/texttoolswidget.cpp
index db2f0acc..c6df3310 100644
--- a/parts/texttools/texttoolswidget.cpp
+++ b/parts/texttools/texttoolswidget.cpp
@@ -128,7 +128,7 @@ void TextToolsWidget::slotItemPressed(int button, TQListViewItem *item)
cursorIface->setCursorPosition(line, col);
}
- if (button == Qt::MidButton) {
+ if (button == TQt::MidButton) {
KTextEditor::SelectionInterface *selectionIface
= dynamic_cast(rwpart);
if (selectionIface) {
@@ -144,7 +144,7 @@ void TextToolsWidget::slotItemPressed(int button, TQListViewItem *item)
void TextToolsWidget::slotReturnPressed(TQListViewItem *item)
{
- slotItemPressed(Qt::LeftButton, item);
+ slotItemPressed(TQt::LeftButton, item);
}
diff --git a/src/languageselectwidget.cpp b/src/languageselectwidget.cpp
index 7a8695ff..52dd0053 100644
--- a/src/languageselectwidget.cpp
+++ b/src/languageselectwidget.cpp
@@ -63,7 +63,7 @@ void LanguageSelectWidget::init()
TQVBoxLayout *layout = new TQVBoxLayout(this);
TQGroupBox * groupBox1 = new TQGroupBox( i18n("Additional Language Support"), this );
- groupBox1->setColumnLayout(0, Qt::Vertical );
+ groupBox1->setColumnLayout(0, TQt::Vertical );
groupBox1->layout()->setSpacing( 6 );
groupBox1->layout()->setMargin( 11 );
TQVBoxLayout * groupBox1Layout = new TQVBoxLayout( groupBox1->layout() );
@@ -81,7 +81,7 @@ void LanguageSelectWidget::init()
layout->addWidget( groupBox1 );
TQGroupBox * groupBox2 = new TQGroupBox( i18n("Description"), this );
- groupBox2->setColumnLayout(0, Qt::Vertical );
+ groupBox2->setColumnLayout(0, TQt::Vertical );
groupBox2->layout()->setSpacing( 6 );
groupBox2->layout()->setMargin( 11 );
TQVBoxLayout * groupBox2Layout = new TQVBoxLayout( groupBox2->layout() );
diff --git a/src/multibuffer.cpp b/src/multibuffer.cpp
index 33110d01..2ec9fd44 100644
--- a/src/multibuffer.cpp
+++ b/src/multibuffer.cpp
@@ -57,12 +57,12 @@ MultiBuffer::MultiBuffer( TQWidget *parent )
API::getInstance() ->languageSupport() )
{
setOrientation( lang->splitOrientation() );
- connect( lang, TQT_SIGNAL( splitOrientationChanged( Qt::Orientation ) ),
- this, TQT_SLOT( setOrientation( Qt::Orientation ) ) );
+ connect( lang, TQT_SIGNAL( splitOrientationChanged( TQt::Orientation ) ),
+ this, TQT_SLOT( setOrientation( TQt::Orientation ) ) );
}
else
{
- setOrientation( Qt::Vertical );
+ setOrientation( TQt::Vertical );
}
}
@@ -249,7 +249,7 @@ void MultiBuffer::show()
TQSplitter::show();
}
-void MultiBuffer::setOrientation( Qt::Orientation orientation )
+void MultiBuffer::setOrientation( TQt::Orientation orientation )
{
TQSplitter::setOrientation( orientation );
}
diff --git a/src/multibuffer.h b/src/multibuffer.h
index 9893a7c6..12967e34 100644
--- a/src/multibuffer.h
+++ b/src/multibuffer.h
@@ -67,7 +67,7 @@ public:
public slots:
virtual void show();
- virtual void setOrientation( Qt::Orientation );
+ virtual void setOrientation( TQt::Orientation );
void activePartChanged( const KURL &url );
protected:
diff --git a/src/newui/dmainwindow.cpp b/src/newui/dmainwindow.cpp
index 55fd0a9c..bc50b6f4 100644
--- a/src/newui/dmainwindow.cpp
+++ b/src/newui/dmainwindow.cpp
@@ -34,7 +34,7 @@ DMainWindow::DMainWindow(TQWidget *parent, const char *name)
{
loadSettings();
createToolWindows();
- m_central = new Ideal::DockSplitter(Qt::Horizontal, this);
+ m_central = new Ideal::DockSplitter(TQt::Horizontal, this);
m_activeTabWidget = createTab();
m_central->addDock(0, 0, m_activeTabWidget);
setCentralWidget(m_central);
diff --git a/src/newui/docksplitter.cpp b/src/newui/docksplitter.cpp
index 6cfa9445..c3ca883b 100644
--- a/src/newui/docksplitter.cpp
+++ b/src/newui/docksplitter.cpp
@@ -23,16 +23,16 @@
namespace Ideal {
-DockSplitter::DockSplitter(Qt::Orientation orientation, TQWidget *parent, const char *name)
+DockSplitter::DockSplitter(TQt::Orientation orientation, TQWidget *parent, const char *name)
:TQSplitter(parent, name), m_orientation(orientation)
{
switch (m_orientation)
{
- case Qt::Horizontal:
- setOrientation(Qt::Vertical);
+ case TQt::Horizontal:
+ setOrientation(TQt::Vertical);
break;
- case Qt::Vertical:
- setOrientation(Qt::Horizontal);
+ case TQt::Vertical:
+ setOrientation(TQt::Horizontal);
break;
}
setOpaqueResize(true);
@@ -73,11 +73,11 @@ void DockSplitter::appendSplitter()
{
switch (m_orientation)
{
- case Qt::Horizontal:
- m_splitters.append(new TQSplitter(Qt::Horizontal, this));
+ case TQt::Horizontal:
+ m_splitters.append(new TQSplitter(TQt::Horizontal, this));
break;
- case Qt::Vertical:
- m_splitters.append(new TQSplitter(Qt::Vertical, this));
+ case TQt::Vertical:
+ m_splitters.append(new TQSplitter(TQt::Vertical, this));
break;
}
m_splitters[m_splitters.size()-1]->setOpaqueResize(true);
diff --git a/src/newui/docksplitter.h b/src/newui/docksplitter.h
index c28153dc..1d2a2d56 100644
--- a/src/newui/docksplitter.h
+++ b/src/newui/docksplitter.h
@@ -34,7 +34,7 @@ class DockSplitter: public TQSplitter {
TQ_OBJECT
public:
- DockSplitter(Qt::Orientation orientation, TQWidget *parent = 0, const char *name = 0);
+ DockSplitter(TQt::Orientation orientation, TQWidget *parent = 0, const char *name = 0);
~DockSplitter();
void addDock(uint row, uint col, TQWidget *dock);
@@ -53,7 +53,7 @@ protected:
bool isRowEmpty(int row);
private:
- Qt::Orientation m_orientation;
+ TQt::Orientation m_orientation;
TQValueList m_splitters;
TQValueList > m_docks;
};
diff --git a/vcs/cvsservice/annotatepage.cpp b/vcs/cvsservice/annotatepage.cpp
index e044db54..1b23e973 100644
--- a/vcs/cvsservice/annotatepage.cpp
+++ b/vcs/cvsservice/annotatepage.cpp
@@ -227,7 +227,7 @@ void AnnotatePage::parseAnnotateOutput(TQStringList& lines)
//so we pass it as TQDateTime to the AnnotateView below
TQString dateString = line.mid(23, 9);
if( !dateString.isEmpty() )
- logDate.setTime_t(KRFCDate::parseDate(dateString), Qt::UTC);
+ logDate.setTime_t(KRFCDate::parseDate(dateString), TQt::UTC);
rev = line.left(13).stripWhiteSpace();
author = line.mid(14, 8).stripWhiteSpace();
diff --git a/vcs/cvsservice/cvsentry.cpp b/vcs/cvsservice/cvsentry.cpp
index 79f83deb..c30e15a8 100644
--- a/vcs/cvsservice/cvsentry.cpp
+++ b/vcs/cvsservice/cvsentry.cpp
@@ -97,7 +97,7 @@ void CVSEntry::parse( const TQString &aLine, const CVSDir& dir )
{
TQDateTime date( TQDateTime::fromString( timeStamp() ) );
TQDateTime fileDateUTC;
- fileDateUTC.setTime_t( TQFileInfo(dir, fileName()).lastModified().toTime_t(), Qt::UTC );
+ fileDateUTC.setTime_t( TQFileInfo(dir, fileName()).lastModified().toTime_t(), TQt::UTC );
if ( date != fileDateUTC )
m_state = Modified;
}
diff --git a/vcs/subversion/svn_logviewwidget.cpp b/vcs/subversion/svn_logviewwidget.cpp
index dd5d5720..ebf5f438 100644
--- a/vcs/subversion/svn_logviewwidget.cpp
+++ b/vcs/subversion/svn_logviewwidget.cpp
@@ -44,7 +44,7 @@ SvnLogViewWidget::SvnLogViewWidget(subversionPart *part, TQWidget *parent)
m_layout = new TQGridLayout( this, 1, 1, 11, 6, "SvnLogViewWidgetBaseLayout");
splitter1 = new TQSplitter( this, "splitter1" );
- splitter1->setOrientation( Qt::Horizontal );
+ splitter1->setOrientation( TQt::Horizontal );
splitter1->setMargin(1);
listView1 = new TQListView( splitter1, "listView1" );