Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/30/head
Michele Calgaro 6 months ago
parent e531a8d913
commit 6b0cf55d62
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -87,7 +87,7 @@ AutoProjectWidget::AutoProjectWidget( AutoProjectPart *part, bool kde )
m_choosenTarget = 0; m_choosenTarget = 0;
m_makefileHandler = new MakefileHandler(); m_makefileHandler = new MakefileHandler();
TQSplitter *splitter = new TQSplitter(Qt::Vertical, this); TQSplitter *splitter = new TQSplitter(TQt::Vertical, this);
initOverview ( splitter ); initOverview ( splitter );
initDetailview ( splitter ); initDetailview ( splitter );

@ -75,7 +75,7 @@ ConfigureOptionsWidget::ConfigureOptionsWidget(AutoProjectPart *part, TQWidget *
config_combo->setValidator(new TQRegExpValidator(TQRegExp("^\\D.*"), TQT_TQOBJECT(this))); config_combo->setValidator(new TQRegExpValidator(TQRegExp("^\\D.*"), TQT_TQOBJECT(this)));
m_part = part; m_part = part;
env_groupBox->setColumnLayout( 1, Qt::Vertical ); env_groupBox->setColumnLayout( 1, TQt::Vertical );
TQDomDocument &dom = *part->projectDom(); TQDomDocument &dom = *part->projectDom();
m_environmentVariablesWidget = new EnvironmentVariablesWidget(dom, "/kdevautoproject/general/envvars", env_groupBox); m_environmentVariablesWidget = new EnvironmentVariablesWidget(dom, "/kdevautoproject/general/envvars", env_groupBox);

@ -46,7 +46,7 @@ CustomMakeConfigWidget::CustomMakeConfigWidget(CustomProjectPart* part, const TQ
envs_combo->setValidator(new TQRegExpValidator(TQRegExp("^\\D[^\\s]*"), TQT_TQOBJECT(this))); envs_combo->setValidator(new TQRegExpValidator(TQRegExp("^\\D[^\\s]*"), TQT_TQOBJECT(this)));
m_allEnvironments = m_part->allMakeEnvironments(); m_allEnvironments = m_part->allMakeEnvironments();
m_currentEnvironment = m_part->currentMakeEnvironment(); m_currentEnvironment = m_part->currentMakeEnvironment();
env_var_group->setColumnLayout( 1, Qt::Vertical ); env_var_group->setColumnLayout( 1, TQt::Vertical );
m_envWidget = new EnvironmentVariablesWidget(m_dom, m_configGroup + "/make/environments/" + m_currentEnvironment, env_var_group); m_envWidget = new EnvironmentVariablesWidget(m_dom, m_configGroup + "/make/environments/" + m_currentEnvironment, env_var_group);
envs_combo->insertStringList(m_allEnvironments); envs_combo->insertStringList(m_allEnvironments);
envs_combo->setEditText(m_currentEnvironment); envs_combo->setEditText(m_currentEnvironment);

@ -41,7 +41,7 @@ CustomOtherConfigWidget::CustomOtherConfigWidget(CustomProjectPart* part, const
envs_combo->setValidator(new TQRegExpValidator(TQRegExp("^\\D.*"), TQT_TQOBJECT(this))); envs_combo->setValidator(new TQRegExpValidator(TQRegExp("^\\D.*"), TQT_TQOBJECT(this)));
m_allEnvironments = m_part->allMakeEnvironments(); m_allEnvironments = m_part->allMakeEnvironments();
m_currentEnvironment = m_part->currentMakeEnvironment(); m_currentEnvironment = m_part->currentMakeEnvironment();
env_var_group->setColumnLayout( 1, Qt::Vertical ); env_var_group->setColumnLayout( 1, TQt::Vertical );
m_envWidget = new EnvironmentVariablesWidget(m_dom, m_configGroup + "/other/environments/" + m_currentEnvironment, env_var_group); m_envWidget = new EnvironmentVariablesWidget(m_dom, m_configGroup + "/other/environments/" + m_currentEnvironment, env_var_group);
envs_combo->insertStringList(m_allEnvironments); envs_combo->insertStringList(m_allEnvironments);
envs_combo->setEditText(m_currentEnvironment); envs_combo->setEditText(m_currentEnvironment);

@ -33,7 +33,7 @@ MakeOptionsWidget::MakeOptionsWidget(TQDomDocument &dom, const TQString &configG
: MakeOptionsWidgetBase(parent, name), : MakeOptionsWidgetBase(parent, name),
m_dom(dom), m_configGroup(configGroup) m_dom(dom), m_configGroup(configGroup)
{ {
env_var_group->setColumnLayout( 1, Qt::Vertical ); env_var_group->setColumnLayout( 1, TQt::Vertical );
m_environmentVariablesWidget = new EnvironmentVariablesWidget( dom, configGroup + "/make/envvars", env_var_group ); m_environmentVariablesWidget = new EnvironmentVariablesWidget( dom, configGroup + "/make/envvars", env_var_group );
abort_box->setChecked(DomUtil::readBoolEntry(dom, configGroup + "/make/abortonerror", true )); abort_box->setChecked(DomUtil::readBoolEntry(dom, configGroup + "/make/abortonerror", true ));

@ -44,7 +44,7 @@ RunOptionsWidget::RunOptionsWidget(TQDomDocument &dom, const TQString &configGro
m_dom(dom), m_configGroup(configGroup) m_dom(dom), m_configGroup(configGroup)
{ {
// Create the "Environment Variables" GUI // Create the "Environment Variables" GUI
env_var_group->setColumnLayout( 1, Qt::Vertical ); env_var_group->setColumnLayout( 1, TQt::Vertical );
m_environmentVariablesWidget = new EnvironmentVariablesWidget( dom, configGroup + "/run/envvars", env_var_group ); m_environmentVariablesWidget = new EnvironmentVariablesWidget( dom, configGroup + "/run/envvars", env_var_group );
mainprogram_edit->completionObject()->setMode(KURLCompletion::FileCompletion); mainprogram_edit->completionObject()->setMode(KURLCompletion::FileCompletion);

@ -84,7 +84,7 @@ TrollProjectWidget::TrollProjectWidget( TrollProjectPart *part )
m_rootScope ( 0 ), m_part ( part ), m_configDlg( 0 ), m_filesCached(false) m_rootScope ( 0 ), m_part ( part ), m_configDlg( 0 ), m_filesCached(false)
{ {
TQSplitter * splitter = new TQSplitter(Qt::Vertical, this ); TQSplitter * splitter = new TQSplitter(TQt::Vertical, this );
////////////////// //////////////////
// PROJECT VIEW // // PROJECT VIEW //

@ -878,7 +878,7 @@ stored in it are a style, a color, a join style and a cap style.
<para> <para>
The pen style is member of the enum The pen style is member of the enum
<ulink url="kdeapi:qt/Qt#PenStyle-enum">Qt::PenStyle</ulink>. <ulink url="kdeapi:qt/Qt#PenStyle-enum">TQt::PenStyle</ulink>.
and can take one of the following values: and can take one of the following values:
</para> </para>
@ -888,7 +888,7 @@ and can take one of the following values:
<para> <para>
The join style is a member of the enum The join style is a member of the enum
<ulink url="kdeapi:qt/Qt#PenJoinStyle-enum">Qt::PenJoinStyle</ulink>. <ulink url="kdeapi:qt/Qt#PenJoinStyle-enum">TQt::PenJoinStyle</ulink>.
It specifies how the junction between multiple lines which are attached to each It specifies how the junction between multiple lines which are attached to each
other is drawn. It takes one of the following values: other is drawn. It takes one of the following values:
</para> </para>
@ -918,7 +918,7 @@ other is drawn. It takes one of the following values:
<para> <para>
The cap style is a member of the enum The cap style is a member of the enum
<ulink url="kdeapi:qt/Qt#PenCapStyle-enum">Qt::PenCapStyle</ulink>and specifies how the end points of lines are drawn. It takes one of the values <ulink url="kdeapi:qt/Qt#PenCapStyle-enum">TQt::PenCapStyle</ulink>and specifies how the end points of lines are drawn. It takes one of the values
from the following table: from the following table:
</para> </para>
@ -978,7 +978,7 @@ brush with the custom pattern you give as second parameter.</para>
<para> <para>
A default brush style is from the enum A default brush style is from the enum
<ulink url="kdeapi:qt/Qt#BrushStyle-enum">Qt::BrushStyle</ulink>. <ulink url="kdeapi:qt/Qt#BrushStyle-enum">TQt::BrushStyle</ulink>.
Here is a picture of all predefined patterns: Here is a picture of all predefined patterns:
</para> </para>
@ -1126,9 +1126,9 @@ Text can be drawn with one of the overloaded variants of the method
QPainter::drawText(). These draw a TQString either at a given point or in a given QPainter::drawText(). These draw a TQString either at a given point or in a given
rectangle, using the font set by QPainter::setFont(). There is also a parameter rectangle, using the font set by QPainter::setFont(). There is also a parameter
which takes an ORed combination of some flags from the enums which takes an ORed combination of some flags from the enums
<ulink url="kdeapi:qt/Qt#AlignmentFlags-enum">Qt::AlignmentFlags</ulink> <ulink url="kdeapi:qt/Qt#AlignmentFlags-enum">TQt::AlignmentFlags</ulink>
and and
<ulink url="kdeapi:qt/Qt#TextFlags-enum">Qt::TextFlags</ulink> <ulink url="kdeapi:qt/Qt#TextFlags-enum">TQt::TextFlags</ulink>
</para> </para>
<para> <para>

@ -131,19 +131,19 @@ void QDesignerAction::remove()
widgetToInsert->reparent( 0, TQPoint( 0, 0 ), FALSE ); widgetToInsert->reparent( 0, TQPoint( 0, 0 ), FALSE );
} }
QDesignerToolBarSeparator::QDesignerToolBarSeparator(Qt::Orientation o , TQToolBar *parent, QDesignerToolBarSeparator::QDesignerToolBarSeparator(TQt::Orientation o , TQToolBar *parent,
const char* name ) const char* name )
: TQWidget( parent, name ) : TQWidget( parent, name )
{ {
connect( parent, TQT_SIGNAL(orientationChanged(Qt::Orientation)), connect( parent, TQT_SIGNAL(orientationChanged(TQt::Orientation)),
this, TQT_SLOT(setOrientation(Qt::Orientation)) ); this, TQT_SLOT(setOrientation(TQt::Orientation)) );
setOrientation( o ); setOrientation( o );
setBackgroundMode( parent->backgroundMode() ); setBackgroundMode( parent->backgroundMode() );
setBackgroundOrigin( ParentOrigin ); setBackgroundOrigin( ParentOrigin );
setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ) ); setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ) );
} }
void QDesignerToolBarSeparator::setOrientation( Qt::Orientation o ) void QDesignerToolBarSeparator::setOrientation( TQt::Orientation o )
{ {
orient = o; orient = o;
} }
@ -157,7 +157,7 @@ TQSize QDesignerToolBarSeparator::sizeHint() const
{ {
int extent = style().pixelMetric( TQStyle::PM_DockWindowSeparatorExtent, int extent = style().pixelMetric( TQStyle::PM_DockWindowSeparatorExtent,
this ); this );
if ( orient ==Qt::Horizontal ) if ( orient ==TQt::Horizontal )
return TQSize( extent, 0 ); return TQSize( extent, 0 );
else else
return TQSize( 0, extent ); return TQSize( 0, extent );
@ -168,7 +168,7 @@ void QDesignerToolBarSeparator::paintEvent( TQPaintEvent * )
TQPainter p( this ); TQPainter p( this );
TQStyle::SFlags flags = TQStyle::Style_Default; TQStyle::SFlags flags = TQStyle::Style_Default;
if ( orientation() ==Qt::Horizontal ) if ( orientation() ==TQt::Horizontal )
flags |= TQStyle::Style_Horizontal; flags |= TQStyle::Style_Horizontal;
style().tqdrawPrimitive( TQStyle::PE_DockWindowSeparator, &p, rect(), style().tqdrawPrimitive( TQStyle::PE_DockWindowSeparator, &p, rect(),
@ -285,7 +285,7 @@ bool QDesignerToolBar::eventFilter( TQObject *o, TQEvent *e )
return TQToolBar::eventFilter( o, e ); return TQToolBar::eventFilter( o, e );
if ( o == this && e->type() == TQEvent::MouseButtonPress && if ( o == this && e->type() == TQEvent::MouseButtonPress &&
( ( TQMouseEvent*)e )->button() == Qt::LeftButton ) { ( ( TQMouseEvent*)e )->button() == TQt::LeftButton ) {
mousePressEvent( (TQMouseEvent*)e ); mousePressEvent( (TQMouseEvent*)e );
return TRUE; return TRUE;
} }
@ -359,7 +359,7 @@ void QDesignerToolBar::contextMenuEvent( TQContextMenuEvent *e )
void QDesignerToolBar::mousePressEvent( TQMouseEvent *e ) void QDesignerToolBar::mousePressEvent( TQMouseEvent *e )
{ {
widgetInserting = FALSE; widgetInserting = FALSE;
if ( e->button() == Qt::LeftButton && if ( e->button() == TQt::LeftButton &&
MainWindow::self->currentTool() != POINTER_TOOL && MainWindow::self->currentTool() != POINTER_TOOL &&
MainWindow::self->currentTool() != ORDER_TOOL && MainWindow::self->currentTool() != ORDER_TOOL &&
MainWindow::self->currentTool() != CONNECT_TOOL && MainWindow::self->currentTool() != CONNECT_TOOL &&
@ -440,10 +440,10 @@ void QDesignerToolBar::buttonMousePressEvent( TQMouseEvent *e, TQObject * )
{ {
widgetInserting = FALSE; widgetInserting = FALSE;
if ( e->button() == Qt::MidButton ) if ( e->button() == TQt::MidButton )
return; return;
if ( e->button() == Qt::LeftButton && if ( e->button() == TQt::LeftButton &&
MainWindow::self->currentTool() != POINTER_TOOL && MainWindow::self->currentTool() != POINTER_TOOL &&
MainWindow::self->currentTool() != ORDER_TOOL && MainWindow::self->currentTool() != ORDER_TOOL &&
MainWindow::self->currentTool() != CONNECT_TOOL && MainWindow::self->currentTool() != CONNECT_TOOL &&
@ -474,7 +474,7 @@ void QDesignerToolBar::removeWidget( TQWidget *w )
void QDesignerToolBar::buttonMouseMoveEvent( TQMouseEvent *e, TQObject *o ) void QDesignerToolBar::buttonMouseMoveEvent( TQMouseEvent *e, TQObject *o )
{ {
if ( widgetInserting || ( e->state() & Qt::LeftButton ) == 0 ) if ( widgetInserting || ( e->state() & TQt::LeftButton ) == 0 )
return; return;
if ( TQABS( TQPoint( dragStartPos - e->pos() ).manhattanLength() ) < TQApplication::startDragDistance() ) if ( TQABS( TQPoint( dragStartPos - e->pos() ).manhattanLength() ) < TQApplication::startDragDistance() )
return; return;
@ -611,7 +611,7 @@ void QDesignerToolBar::actionRemoved()
TQPoint QDesignerToolBar::calcIndicatorPos( const TQPoint &pos ) TQPoint QDesignerToolBar::calcIndicatorPos( const TQPoint &pos )
{ {
if ( orientation() ==Qt::Horizontal ) { if ( orientation() ==TQt::Horizontal ) {
TQPoint pnt( width() - 2, 0 ); TQPoint pnt( width() - 2, 0 );
insertAnchor = 0; insertAnchor = 0;
afterAnchor = TRUE; afterAnchor = TRUE;
@ -665,7 +665,7 @@ void QDesignerToolBar::drawIndicator( const TQPoint &pos )
if ( lastIndicatorPos == pos ) if ( lastIndicatorPos == pos )
return; return;
bool wasVsisible = indicator->isVisible(); bool wasVsisible = indicator->isVisible();
if ( orientation() ==Qt::Horizontal ) { if ( orientation() ==TQt::Horizontal ) {
indicator->resize( 3, height() ); indicator->resize( 3, height() );
if ( pos != TQPoint( -1, -1 ) ) if ( pos != TQPoint( -1, -1 ) )
indicator->move( pos.x() - 1, 0 ); indicator->move( pos.x() - 1, 0 );

@ -158,17 +158,17 @@ class QDesignerToolBarSeparator : public TQWidget
public: public:
QDesignerToolBarSeparator( Qt::Orientation, TQToolBar *parent, const char* name=0 ); QDesignerToolBarSeparator( TQt::Orientation, TQToolBar *parent, const char* name=0 );
TQSize sizeHint() const; TQSize sizeHint() const;
Qt::Orientation orientation() const { return orient; } TQt::Orientation orientation() const { return orient; }
public slots: public slots:
void setOrientation( Qt::Orientation ); void setOrientation( TQt::Orientation );
protected: protected:
void styleChange( TQStyle& ); void styleChange( TQStyle& );
void paintEvent( TQPaintEvent * ); void paintEvent( TQPaintEvent * );
private: private:
Qt::Orientation orient; TQt::Orientation orient;
}; };

@ -353,7 +353,7 @@ void FormWindow::insertWidget()
return; return;
bool useSizeHint = !oldRectValid || ( currRect.width() < 2 && currRect.height() < 2 ); bool useSizeHint = !oldRectValid || ( currRect.width() < 2 && currRect.height() < 2 );
Qt::Orientation orient =Qt::Horizontal; TQt::Orientation orient =TQt::Horizontal;
TQString n = WidgetDatabase::className( currTool ); TQString n = WidgetDatabase::className( currTool );
if ( useSizeHint && ( n == "Spacer" || n == "TQSlider" || n == "Line" || n == "TQScrollBar" ) ) { if ( useSizeHint && ( n == "Spacer" || n == "TQSlider" || n == "Line" || n == "TQScrollBar" ) ) {
TQPopupMenu m( mainWindow() ); TQPopupMenu m( mainWindow() );
@ -361,7 +361,7 @@ void FormWindow::insertWidget()
int ver = m.insertItem( i18n( "&Vertical" ) ); int ver = m.insertItem( i18n( "&Vertical" ) );
int r = m.exec( TQCursor::pos() ); int r = m.exec( TQCursor::pos() );
if ( r == ver ) if ( r == ver )
orient =Qt::Vertical; orient =TQt::Vertical;
} }
@ -408,7 +408,7 @@ void FormWindow::insertWidget()
if ( useSizeHint ) { if ( useSizeHint ) {
if ( n == "Spacer" ) { if ( n == "Spacer" ) {
if ( orient ==Qt::Vertical ) { if ( orient ==TQt::Vertical ) {
r.setWidth( 20 ); r.setWidth( 20 );
r.setHeight( 40 ); r.setHeight( 40 );
} else { } else {
@ -609,7 +609,7 @@ void FormWindow::handleMousePress( TQMouseEvent *e, TQWidget *w )
tqApp->processEvents(); tqApp->processEvents();
} }
if ( ( ( e->state() & ControlButton ) || ( e->state() & ShiftButton ) ) && if ( ( ( e->state() & ControlButton ) || ( e->state() & ShiftButton ) ) &&
sel && e->button() == Qt::LeftButton ) { // control pressed and selected, unselect widget sel && e->button() == TQt::LeftButton ) { // control pressed and selected, unselect widget
selectWidget( TQT_TQOBJECT(w), FALSE ); selectWidget( TQT_TQOBJECT(w), FALSE );
break; break;
} }
@ -622,7 +622,7 @@ void FormWindow::handleMousePress( TQMouseEvent *e, TQWidget *w )
( WidgetFactory::layoutType( w->parentWidget()) != WidgetFactory::NoLayout || !insertedWidgets.find(w) ) ) ( WidgetFactory::layoutType( w->parentWidget()) != WidgetFactory::NoLayout || !insertedWidgets.find(w) ) )
w = w->parentWidget(); w = w->parentWidget();
if ( e->button() == Qt::LeftButton ) { // left button: store original geometry and more as the widget might start moving if ( e->button() == TQt::LeftButton ) { // left button: store original geometry and more as the widget might start moving
widgetPressed = TRUE; widgetPressed = TRUE;
widgetGeom = TQRect( w->pos(), w->size() ); widgetGeom = TQRect( w->pos(), w->size() );
oldPressPos = w->mapFromGlobal( e->globalPos() ); oldPressPos = w->mapFromGlobal( e->globalPos() );
@ -636,7 +636,7 @@ void FormWindow::handleMousePress( TQMouseEvent *e, TQWidget *w )
} }
} }
} else { // press was on the formwindow } else { // press was on the formwindow
if ( e->button() == Qt::LeftButton ) { // left button: start rubber selection and show formwindow properties if ( e->button() == TQt::LeftButton ) { // left button: start rubber selection and show formwindow properties
drawRubber = TRUE; drawRubber = TRUE;
if ( !( ( e->state() & ControlButton ) || ( e->state() & ShiftButton ) ) ) { if ( !( ( e->state() & ControlButton ) || ( e->state() & ShiftButton ) ) ) {
clearSelection( FALSE ); clearSelection( FALSE );
@ -652,7 +652,7 @@ void FormWindow::handleMousePress( TQMouseEvent *e, TQWidget *w )
break; break;
case CONNECT_TOOL: case CONNECT_TOOL:
case BUDDY_TOOL: case BUDDY_TOOL:
if ( e->button() != Qt::LeftButton ) if ( e->button() != TQt::LeftButton )
break; break;
validForBuddy = FALSE; validForBuddy = FALSE;
if ( currTool == BUDDY_TOOL ) { if ( currTool == BUDDY_TOOL ) {
@ -691,7 +691,7 @@ void FormWindow::handleMousePress( TQMouseEvent *e, TQWidget *w )
} }
break; break;
default: // any insert widget tool default: // any insert widget tool
if ( e->button() == Qt::LeftButton ) { if ( e->button() == TQt::LeftButton ) {
insertParent = WidgetFactory::containerOfWidget( mainContainer() ); // default parent for new widget is the formwindow insertParent = WidgetFactory::containerOfWidget( mainContainer() ); // default parent for new widget is the formwindow
if ( !isMainContainer( TQT_TQOBJECT(w) ) ) { // press was not on formwindow, check if we can find another parent if ( !isMainContainer( TQT_TQOBJECT(w) ) ) { // press was not on formwindow, check if we can find another parent
TQWidget *wid = w; TQWidget *wid = w;
@ -746,7 +746,7 @@ void FormWindow::handleMouseDblClick( TQMouseEvent *, TQWidget *w )
void FormWindow::handleMouseMove( TQMouseEvent *e, TQWidget *w ) void FormWindow::handleMouseMove( TQMouseEvent *e, TQWidget *w )
{ {
CHECK_MAINWINDOW; CHECK_MAINWINDOW;
if ( ( e->state() & Qt::LeftButton ) != Qt::LeftButton ) if ( ( e->state() & TQt::LeftButton ) != TQt::LeftButton )
return; return;
TQWidget *newendWidget = endWidget, *oldendWidget = endWidget, *wid; TQWidget *newendWidget = endWidget, *oldendWidget = endWidget, *wid;
@ -922,7 +922,7 @@ void FormWindow::handleMouseMove( TQMouseEvent *e, TQWidget *w )
void FormWindow::handleMouseRelease( TQMouseEvent *e, TQWidget *w ) void FormWindow::handleMouseRelease( TQMouseEvent *e, TQWidget *w )
{ {
CHECK_MAINWINDOW; CHECK_MAINWINDOW;
if ( e->button() != Qt::LeftButton ) if ( e->button() != TQt::LeftButton )
return; return;
switch ( currTool ) { switch ( currTool ) {

@ -328,7 +328,7 @@ void HorizontalLayout::doLayout()
} }
if ( ::tqqt_cast<TQSplitter*>(layoutBase) ) if ( ::tqqt_cast<TQSplitter*>(layoutBase) )
( (TQSplitter*)layoutBase )->setOrientation( Qt::Horizontal ); ( (TQSplitter*)layoutBase )->setOrientation( TQt::Horizontal );
finishLayout( needMove, layout ); finishLayout( needMove, layout );
} }
@ -392,7 +392,7 @@ void VerticalLayout::doLayout()
} }
if ( ::tqqt_cast<TQSplitter*>(layoutBase) ) if ( ::tqqt_cast<TQSplitter*>(layoutBase) )
( (TQSplitter*)layoutBase )->setOrientation( Qt::Vertical ); ( (TQSplitter*)layoutBase )->setOrientation( TQt::Vertical );
finishLayout( needMove, layout ); finishLayout( needMove, layout );
} }
@ -865,7 +865,7 @@ void GridLayout::buildGrid()
Spacer::Spacer( TQWidget *parent, const char *name ) Spacer::Spacer( TQWidget *parent, const char *name )
: TQWidget( parent, name, WMouseNoMask ), : TQWidget( parent, name, WMouseNoMask ),
orient(Qt::Vertical ), interactive(TRUE), sh( TQSize(20,20) ) orient(TQt::Vertical ), interactive(TRUE), sh( TQSize(20,20) )
{ {
setSizeType( Expanding ); setSizeType( Expanding );
setAutoMask( TRUE ); setAutoMask( TRUE );
@ -876,7 +876,7 @@ void Spacer::paintEvent( TQPaintEvent * )
TQPainter p( this ); TQPainter p( this );
p.setPen( TQt::blue ); p.setPen( TQt::blue );
if ( orient ==Qt::Horizontal ) { if ( orient ==TQt::Horizontal ) {
const int dist = 3; const int dist = 3;
const int amplitude = TQMIN( 3, height() / 3 ); const int amplitude = TQMIN( 3, height() / 3 );
const int base = height() / 2; const int base = height() / 2;
@ -915,7 +915,7 @@ void Spacer::resizeEvent( TQResizeEvent* e)
void Spacer::updateMask() void Spacer::updateMask()
{ {
TQRegion r( rect() ); TQRegion r( rect() );
if ( orient ==Qt::Horizontal ) { if ( orient ==TQt::Horizontal ) {
const int amplitude = TQMIN( 3, height() / 3 ); const int amplitude = TQMIN( 3, height() / 3 );
const int base = height() / 2; const int base = height() / 2;
r = r.subtract( TQRect(1, 0, width() - 2, base - amplitude ) ); r = r.subtract( TQRect(1, 0, width() - 2, base - amplitude ) );
@ -932,7 +932,7 @@ void Spacer::updateMask()
void Spacer::setSizeType( SizeType t ) void Spacer::setSizeType( SizeType t )
{ {
TQSizePolicy sizeP; TQSizePolicy sizeP;
if ( orient ==Qt::Vertical ) if ( orient ==TQt::Vertical )
sizeP = TQSizePolicy( TQSizePolicy::Minimum, (TQSizePolicy::SizeType)t ); sizeP = TQSizePolicy( TQSizePolicy::Minimum, (TQSizePolicy::SizeType)t );
else else
sizeP = TQSizePolicy( (TQSizePolicy::SizeType)t, TQSizePolicy::Minimum ); sizeP = TQSizePolicy( (TQSizePolicy::SizeType)t, TQSizePolicy::Minimum );
@ -942,14 +942,14 @@ void Spacer::setSizeType( SizeType t )
Spacer::SizeType Spacer::sizeType() const Spacer::SizeType Spacer::sizeType() const
{ {
if ( orient ==Qt::Vertical ) if ( orient ==TQt::Vertical )
return (SizeType)sizePolicy().verData(); return (SizeType)sizePolicy().verData();
return (SizeType)sizePolicy().horData(); return (SizeType)sizePolicy().horData();
} }
int Spacer::alignment() const int Spacer::alignment() const
{ {
if ( orient ==Qt::Vertical ) if ( orient ==TQt::Vertical )
return AlignHCenter; return AlignHCenter;
return AlignVCenter; return AlignVCenter;
} }
@ -958,7 +958,7 @@ TQSize Spacer::minimumSize() const
{ {
TQSize s = TQSize( 20,20 ); TQSize s = TQSize( 20,20 );
if ( sizeType() == Expanding ) if ( sizeType() == Expanding )
if ( orient ==Qt::Vertical ) if ( orient ==TQt::Vertical )
s.rheight() = 0; s.rheight() = 0;
else else
s.rwidth() = 0; s.rwidth() = 0;
@ -979,12 +979,12 @@ void Spacer::setSizeHint( const TQSize &s )
updateGeometry(); updateGeometry();
} }
Qt::Orientation Spacer::orientation() const TQt::Orientation Spacer::orientation() const
{ {
return orient; return orient;
} }
void Spacer::setOrientation( Qt::Orientation o ) void Spacer::setOrientation( TQt::Orientation o )
{ {
if ( orient == o ) if ( orient == o )
return; return;

@ -81,7 +81,7 @@ bool ListBoxDnd::dropEvent( TQDropEvent * event )
bool ListBoxDnd::mouseMoveEvent( TQMouseEvent * event ) bool ListBoxDnd::mouseMoveEvent( TQMouseEvent * event )
{ {
if ( event->state() & Qt::LeftButton ) { if ( event->state() & TQt::LeftButton ) {
if ( ( event->pos() - mousePressPos ).manhattanLength() > 3 ) { if ( ( event->pos() - mousePressPos ).manhattanLength() > 3 ) {
ListBoxItemList list; ListBoxItemList list;

@ -75,7 +75,7 @@ bool ListBoxRename::eventFilter( TQObject *, TQEvent * event )
case TQEvent::MouseMove: case TQEvent::MouseMove:
if ( ((TQMouseEvent *) event)->state() & Qt::LeftButton ) { if ( ((TQMouseEvent *) event)->state() & TQt::LeftButton ) {
activity = TRUE; // drag activity = TRUE; // drag
} }
break; break;

@ -119,7 +119,7 @@ bool ListDnd::dropEvent( TQDropEvent * )
bool ListDnd::mousePressEvent( TQMouseEvent * event ) bool ListDnd::mousePressEvent( TQMouseEvent * event )
{ {
if ( event->button() == Qt::LeftButton ) if ( event->button() == TQt::LeftButton )
mousePressPos = event->pos(); mousePressPos = event->pos();
return FALSE; return FALSE;
} }

@ -92,7 +92,7 @@ bool ListViewDnd::dropEvent( TQDropEvent * event )
bool ListViewDnd::mouseMoveEvent( TQMouseEvent * event ) bool ListViewDnd::mouseMoveEvent( TQMouseEvent * event )
{ {
if ( event->state() & Qt::LeftButton ) { if ( event->state() & TQt::LeftButton ) {
if ( ( event->pos() - mousePressPos ).manhattanLength() > 3 ) { if ( ( event->pos() - mousePressPos ).manhattanLength() > 3 ) {
ListViewItemList list; ListViewItemList list;

@ -470,7 +470,7 @@ void MainWindow::setupToolbox()
setDockEnabled( dw, TQt::DockBottom, FALSE ); setDockEnabled( dw, TQt::DockBottom, FALSE );
commonWidgetsToolBar = new TQToolBar( "Common Widgets", 0, toolBox, FALSE, "Common Widgets" ); commonWidgetsToolBar = new TQToolBar( "Common Widgets", 0, toolBox, FALSE, "Common Widgets" );
commonWidgetsToolBar->setFrameStyle( TQFrame::NoFrame ); commonWidgetsToolBar->setFrameStyle( TQFrame::NoFrame );
commonWidgetsToolBar->setOrientation( Qt::Vertical ); commonWidgetsToolBar->setOrientation( TQt::Vertical );
commonWidgetsToolBar->setBackgroundMode(PaletteBase); commonWidgetsToolBar->setBackgroundMode(PaletteBase);
toolBox->addItem( commonWidgetsToolBar, "Common Widgets" ); toolBox->addItem( commonWidgetsToolBar, "Common Widgets" );
} }

@ -520,7 +520,7 @@ void MainWindow::setupToolActions()
TQToolBar *tb2 = new TQToolBar( grp, 0, toolBox, FALSE, grp.latin1() ); TQToolBar *tb2 = new TQToolBar( grp, 0, toolBox, FALSE, grp.latin1() );
tb2->setFrameStyle( TQFrame::NoFrame ); tb2->setFrameStyle( TQFrame::NoFrame );
tb2->setOrientation( Qt::Vertical ); tb2->setOrientation( TQt::Vertical );
tb2->setBackgroundMode( PaletteBase ); tb2->setBackgroundMode( PaletteBase );
toolBox->addItem( tb2, grp ); toolBox->addItem( tb2, grp );
@ -596,7 +596,7 @@ void MainWindow::setupToolActions()
TQToolBar *tb2 = new TQToolBar( "Custom Widgets", 0, TQToolBar *tb2 = new TQToolBar( "Custom Widgets", 0,
toolBox, FALSE, "Custom Widgets" ); toolBox, FALSE, "Custom Widgets" );
tb2->setBackgroundMode(PaletteBase); tb2->setBackgroundMode(PaletteBase);
tb2->setOrientation( Qt::Vertical ); tb2->setOrientation( TQt::Vertical );
tb2->setFrameStyle( TQFrame::NoFrame ); tb2->setFrameStyle( TQFrame::NoFrame );
toolBox->addItem( tb2, "Custom Widgets" ); toolBox->addItem( tb2, "Custom Widgets" );
customWidgetToolBar2 = tb2; customWidgetToolBar2 = tb2;

@ -616,7 +616,7 @@ void MenuBarEditor::mouseDoubleClickEvent( TQMouseEvent * e )
void MenuBarEditor::mouseMoveEvent( TQMouseEvent * e ) void MenuBarEditor::mouseMoveEvent( TQMouseEvent * e )
{ {
if ( e->state() & Qt::LeftButton ) { if ( e->state() & TQt::LeftButton ) {
if ( ( e->pos() - mousePressPos ).manhattanLength() > 3 ) { if ( ( e->pos() - mousePressPos ).manhattanLength() > 3 ) {
bool itemCreated = FALSE; bool itemCreated = FALSE;
bool isSeparator = FALSE; bool isSeparator = FALSE;

@ -761,7 +761,7 @@ void PopupMenuEditor::mouseDoubleClickEvent( TQMouseEvent * )
void PopupMenuEditor::mouseMoveEvent( TQMouseEvent * e ) void PopupMenuEditor::mouseMoveEvent( TQMouseEvent * e )
{ {
if ( e->state() & Qt::LeftButton ) { if ( e->state() & TQt::LeftButton ) {
if ( ( e->pos() - mousePressPos ).manhattanLength() > 3 ) { if ( ( e->pos() - mousePressPos ).manhattanLength() > 3 ) {
draggedItem = itemAt( mousePressPos.y() ); draggedItem = itemAt( mousePressPos.y() );
if ( draggedItem == &addItem ) { if ( draggedItem == &addItem ) {

@ -910,13 +910,13 @@ void PropertyDateItem::setValue( const TQVariant &v )
lined()->setDate( v.toDate() ); lined()->setDate( v.toDate() );
lined()->blockSignals( FALSE ); lined()->blockSignals( FALSE );
} }
setText( 1, v.toDate().toString( ::Qt::ISODate ) ); setText( 1, v.toDate().toString( ::TQt::ISODate ) );
PropertyItem::setValue( v ); PropertyItem::setValue( v );
} }
void PropertyDateItem::setValue() void PropertyDateItem::setValue()
{ {
setText( 1, lined()->date().toString( ::Qt::ISODate ) ); setText( 1, lined()->date().toString( ::TQt::ISODate ) );
TQVariant v; TQVariant v;
v = lined()->date(); v = lined()->date();
PropertyItem::setValue( v ); PropertyItem::setValue( v );
@ -985,13 +985,13 @@ void PropertyTimeItem::setValue( const TQVariant &v )
lined()->setTime( v.toTime() ); lined()->setTime( v.toTime() );
lined()->blockSignals( FALSE ); lined()->blockSignals( FALSE );
} }
setText( 1, v.toTime().toString( ::Qt::ISODate ) ); setText( 1, v.toTime().toString( ::TQt::ISODate ) );
PropertyItem::setValue( v ); PropertyItem::setValue( v );
} }
void PropertyTimeItem::setValue() void PropertyTimeItem::setValue()
{ {
setText( 1, lined()->time().toString( ::Qt::ISODate ) ); setText( 1, lined()->time().toString( ::TQt::ISODate ) );
TQVariant v; TQVariant v;
v = lined()->time(); v = lined()->time();
PropertyItem::setValue( v ); PropertyItem::setValue( v );
@ -1060,13 +1060,13 @@ void PropertyDateTimeItem::setValue( const TQVariant &v )
lined()->setDateTime( v.toDateTime() ); lined()->setDateTime( v.toDateTime() );
lined()->blockSignals( FALSE ); lined()->blockSignals( FALSE );
} }
setText( 1, v.toDateTime().toString( ::Qt::ISODate ) ); setText( 1, v.toDateTime().toString( ::TQt::ISODate ) );
PropertyItem::setValue( v ); PropertyItem::setValue( v );
} }
void PropertyDateTimeItem::setValue() void PropertyDateTimeItem::setValue()
{ {
setText( 1, lined()->dateTime().toString( ::Qt::ISODate ) ); setText( 1, lined()->dateTime().toString( ::TQt::ISODate ) );
TQVariant v; TQVariant v;
v = lined()->dateTime(); v = lined()->dateTime();
PropertyItem::setValue( v ); PropertyItem::setValue( v );
@ -2735,7 +2735,7 @@ void EnumBox::popup()
void EnumBox::mousePressEvent( TQMouseEvent *e ) void EnumBox::mousePressEvent( TQMouseEvent *e )
{ {
if ( e->button() != Qt::LeftButton ) if ( e->button() != TQt::LeftButton )
return; return;
TQRect arrowRect = style().querySubControlMetrics( TQStyle::CC_ComboBox, this, TQRect arrowRect = style().querySubControlMetrics( TQStyle::CC_ComboBox, this,
@ -3582,7 +3582,7 @@ bool PropertyList::eventFilter( TQObject *o, TQEvent *e )
break; break;
case TQEvent::MouseMove: case TQEvent::MouseMove:
me = (TQMouseEvent*)e; me = (TQMouseEvent*)e;
if ( me && me->state() & Qt::LeftButton && mousePressed) { if ( me && me->state() & TQt::LeftButton && mousePressed) {
i = (PropertyListItem*) itemAt( me->pos() ); i = (PropertyListItem*) itemAt( me->pos() );
if ( i && i == pressItem ) { if ( i && i == pressItem ) {

@ -825,7 +825,7 @@ void Resource::paste( const TQString &cb, TQWidget *parent )
w->move( x, y ); w->move( x, y );
formwindow->selectWidget( TQT_TQOBJECT(w) ); formwindow->selectWidget( TQT_TQOBJECT(w) );
} else if ( firstWidget.tagName() == "spacer" ) { } else if ( firstWidget.tagName() == "spacer" ) {
TQWidget *w = createSpacer( firstWidget, parent, 0, firstWidget.tagName() == "vspacer" ? Qt::Vertical : Qt::Horizontal ); TQWidget *w = createSpacer( firstWidget, parent, 0, firstWidget.tagName() == "vspacer" ? TQt::Vertical : TQt::Horizontal );
if ( !w ) if ( !w )
continue; continue;
widgets.append( w ); widgets.append( w );
@ -1883,7 +1883,7 @@ TQObject *Resource::createObject( const TQDomElement &e, TQWidget *parent, TQLay
while ( !n.isNull() ) { while ( !n.isNull() ) {
if ( n.tagName() == "spacer" ) { if ( n.tagName() == "spacer" ) {
createSpacer( n, w, layout, Qt::Horizontal ); createSpacer( n, w, layout, TQt::Horizontal );
} else if ( n.tagName() == "widget" ) { } else if ( n.tagName() == "widget" ) {
createObject( n, w, layout ); createObject( n, w, layout );
} else if ( n.tagName() == "hbox" ) { } else if ( n.tagName() == "hbox" ) {
@ -2139,7 +2139,7 @@ void Resource::createItem( const TQDomElement &e, TQWidget *widget, TQListViewIt
} }
} }
TQWidget *Resource::createSpacer( const TQDomElement &e, TQWidget *parent, TQLayout *layout, Qt::Orientation o ) TQWidget *Resource::createSpacer( const TQDomElement &e, TQWidget *parent, TQLayout *layout, TQt::Orientation o )
{ {
TQDomElement n = e.firstChild().toElement(); TQDomElement n = e.firstChild().toElement();
int row = e.attribute( "row" ).toInt(); int row = e.attribute( "row" ).toInt();

@ -111,7 +111,7 @@ private:
void savePopupMenu( PopupMenuEditor *pm, TQMainWindow *mw, TQTextStream &ts, int indent ); void savePopupMenu( PopupMenuEditor *pm, TQMainWindow *mw, TQTextStream &ts, int indent );
TQObject *createObject( const TQDomElement &e, TQWidget *parent, TQLayout* layout = 0 ); TQObject *createObject( const TQDomElement &e, TQWidget *parent, TQLayout* layout = 0 );
TQWidget *createSpacer( const TQDomElement &e, TQWidget *parent, TQLayout *layout, Qt::Orientation o ); TQWidget *createSpacer( const TQDomElement &e, TQWidget *parent, TQLayout *layout, TQt::Orientation o );
void createItem( const TQDomElement &e, TQWidget *widget, TQListViewItem *i = 0 ); void createItem( const TQDomElement &e, TQWidget *widget, TQListViewItem *i = 0 );
void createColumn( const TQDomElement &e, TQWidget *widget ); void createColumn( const TQDomElement &e, TQWidget *widget );
void setObjectProperty( TQObject* widget, const TQString &prop, const TQDomElement &e); void setObjectProperty( TQObject* widget, const TQString &prop, const TQDomElement &e);

@ -107,7 +107,7 @@ void SizeHandle::paintEvent( TQPaintEvent * )
void SizeHandle::mousePressEvent( TQMouseEvent *e ) void SizeHandle::mousePressEvent( TQMouseEvent *e )
{ {
if ( !widget || e->button() != Qt::LeftButton || !active ) if ( !widget || e->button() != TQt::LeftButton || !active )
return; return;
oldPressPos = e->pos(); oldPressPos = e->pos();
geom = origGeom = TQRect( widget->pos(), widget->size() ); geom = origGeom = TQRect( widget->pos(), widget->size() );
@ -115,7 +115,7 @@ void SizeHandle::mousePressEvent( TQMouseEvent *e )
void SizeHandle::mouseMoveEvent( TQMouseEvent *e ) void SizeHandle::mouseMoveEvent( TQMouseEvent *e )
{ {
if ( !widget || ( e->state() & Qt::LeftButton ) != Qt::LeftButton || !active ) if ( !widget || ( e->state() & TQt::LeftButton ) != TQt::LeftButton || !active )
return; return;
TQPoint rp = mapFromGlobal( e->globalPos() ); TQPoint rp = mapFromGlobal( e->globalPos() );
TQPoint d = oldPressPos - rp; TQPoint d = oldPressPos - rp;
@ -227,7 +227,7 @@ void SizeHandle::mouseMoveEvent( TQMouseEvent *e )
void SizeHandle::mouseReleaseEvent( TQMouseEvent *e ) void SizeHandle::mouseReleaseEvent( TQMouseEvent *e )
{ {
if ( e->button() != Qt::LeftButton || !active ) if ( e->button() != TQt::LeftButton || !active )
return; return;
formWindow->sizePreview()->hide(); formWindow->sizePreview()->hide();

@ -522,7 +522,7 @@ void WidgetFactory::saveChangedProperties( TQObject *w, int id )
created. created.
*/ */
TQWidget *WidgetFactory::create( int id, TQWidget *parent, const char *name, bool init, const TQRect *r, Qt::Orientation orient ) TQWidget *WidgetFactory::create( int id, TQWidget *parent, const char *name, bool init, const TQRect *r, TQt::Orientation orient )
{ {
TQString n = WidgetDatabase::className( id ); TQString n = WidgetDatabase::className( id );
if ( n.isEmpty() ) if ( n.isEmpty() )
@ -591,7 +591,7 @@ TQLayout *WidgetFactory::createLayout( TQWidget *widget, TQLayout *layout, Layou
int align = 0; int align = 0;
if ( !layout && ::tqqt_cast<TQGroupBox*>(widget) ) { if ( !layout && ::tqqt_cast<TQGroupBox*>(widget) ) {
TQGroupBox *gb = (TQGroupBox*)widget; TQGroupBox *gb = (TQGroupBox*)widget;
gb->setColumnLayout( 0, Qt::Vertical ); gb->setColumnLayout( 0, TQt::Vertical );
layout = gb->layout(); layout = gb->layout();
layout->setMargin( 0 ); layout->setMargin( 0 );
layout->setSpacing( 0 ); layout->setSpacing( 0 );
@ -684,7 +684,7 @@ void WidgetFactory::deleteLayout( TQWidget *widget )
*/ */
TQWidget *WidgetFactory::createWidget( const TQString &className, TQWidget *parent, const char *name, bool init, TQWidget *WidgetFactory::createWidget( const TQString &className, TQWidget *parent, const char *name, bool init,
const TQRect *r, Qt::Orientation orient ) const TQRect *r, TQt::Orientation orient )
{ {
if ( className == "TQPushButton" ) { if ( className == "TQPushButton" ) {
TQPushButton *b = 0; TQPushButton *b = 0;
@ -877,9 +877,9 @@ TQWidget *WidgetFactory::createWidget( const TQString &className, TQWidget *pare
if ( !r->isValid() || r->width() < 2 && r->height() < 2 ) if ( !r->isValid() || r->width() < 2 && r->height() < 2 )
s->setOrientation( orient ); s->setOrientation( orient );
else if ( r->width() < r->height() ) else if ( r->width() < r->height() )
s->setOrientation( Qt::Vertical ); s->setOrientation( TQt::Vertical );
else else
s->setOrientation( Qt::Horizontal ); s->setOrientation( TQt::Horizontal );
return s; return s;
} else if ( className == "TQLCDNumber" ) } else if ( className == "TQLCDNumber" )
return new TQLCDNumber( parent, name ); return new TQLCDNumber( parent, name );
@ -898,7 +898,7 @@ TQWidget *WidgetFactory::createWidget( const TQString &className, TQWidget *pare
if ( !r->isValid() || r->width() < 2 && r->height() < 2 ) if ( !r->isValid() || r->width() < 2 && r->height() < 2 )
s->setOrientation( orient ); s->setOrientation( orient );
else if ( r->width() > r->height() ) else if ( r->width() > r->height() )
s->setOrientation( Qt::Horizontal ); s->setOrientation( TQt::Horizontal );
MetaDataBase::addEntry( TQT_TQOBJECT(s) ); MetaDataBase::addEntry( TQT_TQOBJECT(s) );
MetaDataBase::setPropertyChanged( TQT_TQOBJECT(s), "orientation", TRUE ); MetaDataBase::setPropertyChanged( TQT_TQOBJECT(s), "orientation", TRUE );
return s; return s;
@ -909,7 +909,7 @@ TQWidget *WidgetFactory::createWidget( const TQString &className, TQWidget *pare
if ( !r->isValid() || r->width() < 2 && r->height() < 2 ) if ( !r->isValid() || r->width() < 2 && r->height() < 2 )
s->setOrientation( orient ); s->setOrientation( orient );
else if ( r->width() > r->height() ) else if ( r->width() > r->height() )
s->setOrientation( Qt::Horizontal ); s->setOrientation( TQt::Horizontal );
MetaDataBase::addEntry( TQT_TQOBJECT(s) ); MetaDataBase::addEntry( TQT_TQOBJECT(s) );
MetaDataBase::setPropertyChanged( TQT_TQOBJECT(s), "orientation", TRUE ); MetaDataBase::setPropertyChanged( TQT_TQOBJECT(s), "orientation", TRUE );
return s; return s;
@ -930,7 +930,7 @@ TQWidget *WidgetFactory::createWidget( const TQString &className, TQWidget *pare
if ( !r->isValid() || r->width() < 2 && r->height() < 2 ) if ( !r->isValid() || r->width() < 2 && r->height() < 2 )
l->setOrientation( orient ); l->setOrientation( orient );
else if ( r->width() < r->height() ) else if ( r->width() < r->height() )
l->setOrientation( Qt::Vertical ); l->setOrientation( TQt::Vertical );
return l; return l;
} else if ( className == "TQMainWindow" ) { } else if ( className == "TQMainWindow" ) {
TQMainWindow *mw = new TQMainWindow( parent, name, 0 ); TQMainWindow *mw = new TQMainWindow( parent, name, 0 );
@ -1014,7 +1014,7 @@ WidgetFactory::LayoutType WidgetFactory::layoutType( TQWidget *w, TQLayout *&lay
w = ((TQToolBox*)w)->currentItem(); w = ((TQToolBox*)w)->currentItem();
if ( ::tqqt_cast<TQSplitter*>(w) ) if ( ::tqqt_cast<TQSplitter*>(w) )
return ( (TQSplitter*)w )->orientation() ==Qt::Horizontal ? HBox : VBox; return ( (TQSplitter*)w )->orientation() ==TQt::Horizontal ? HBox : VBox;
if ( !w || !w->layout() ) if ( !w || !w->layout() )
return NoLayout; return NoLayout;

@ -523,7 +523,7 @@ void Workspace::itemDoubleClicked( TQListViewItem *i )
void Workspace::itemClicked( int button, TQListViewItem *i, const TQPoint& ) void Workspace::itemClicked( int button, TQListViewItem *i, const TQPoint& )
{ {
if ( !i || button != Qt::LeftButton ) if ( !i || button != TQt::LeftButton )
return; return;
closeAutoOpenItems(); closeAutoOpenItems();
@ -640,7 +640,7 @@ void Workspace::rmbClicked( TQListViewItem *i, const TQPoint& pos )
case OPEN_SOURCE: case OPEN_SOURCE:
case OPEN_FORM: case OPEN_FORM:
case OPEN_FORM_SOURCE: case OPEN_FORM_SOURCE:
itemClicked( Qt::LeftButton, i, pos ); itemClicked( TQt::LeftButton, i, pos );
break; break;
} }
} }
@ -689,7 +689,7 @@ void Workspace::bufferChosen( const TQString &buffer )
TQListViewItemIterator it( this ); TQListViewItemIterator it( this );
while ( it.current() ) { while ( it.current() ) {
if ( ( (WorkspaceItem*)it.current())->checkCompletion( buffer ) ) { if ( ( (WorkspaceItem*)it.current())->checkCompletion( buffer ) ) {
itemClicked( Qt::LeftButton, it.current(), TQPoint() ); itemClicked( TQt::LeftButton, it.current(), TQPoint() );
break; break;
} }
++it; ++it;

@ -1753,7 +1753,7 @@ TQLayout *TQWidgetFactory::createLayout( TQWidget *widget, TQLayout* layout,
int align = 0; int align = 0;
if ( !layout && widget && widget->inherits( "TQGroupBox" ) ) { if ( !layout && widget && widget->inherits( "TQGroupBox" ) ) {
TQGroupBox *gb = (TQGroupBox*)widget; TQGroupBox *gb = (TQGroupBox*)widget;
gb->setColumnLayout( 0, Qt::Vertical ); gb->setColumnLayout( 0, TQt::Vertical );
layout = gb->layout(); layout = gb->layout();
layout->setMargin( 0 ); layout->setMargin( 0 );
layout->setSpacing( 0 ); layout->setSpacing( 0 );
@ -1925,7 +1925,7 @@ void TQWidgetFactory::createSpacer( const TQDomElement &e, TQLayout *layout )
int rowspan = e.attribute( "rowspan" ).toInt(); int rowspan = e.attribute( "rowspan" ).toInt();
int colspan = e.attribute( "colspan" ).toInt(); int colspan = e.attribute( "colspan" ).toInt();
Qt::Orientation orient = Qt::Horizontal; TQt::Orientation orient = TQt::Horizontal;
int w = 0, h = 0; int w = 0, h = 0;
TQSizePolicy::SizeType sizeType = TQSizePolicy::Preferred; TQSizePolicy::SizeType sizeType = TQSizePolicy::Preferred;
while ( !n.isNull() ) { while ( !n.isNull() ) {
@ -1933,9 +1933,9 @@ void TQWidgetFactory::createSpacer( const TQDomElement &e, TQLayout *layout )
TQString prop = n.attribute( "name" ); TQString prop = n.attribute( "name" );
if ( prop == "orientation" ) { if ( prop == "orientation" ) {
if ( n.firstChild().firstChild().toText().data() == "Horizontal" ) if ( n.firstChild().firstChild().toText().data() == "Horizontal" )
orient = Qt::Horizontal; orient = TQt::Horizontal;
else else
orient = Qt::Vertical; orient = TQt::Vertical;
} else if ( prop == "sizeType" ) { } else if ( prop == "sizeType" ) {
sizeType = stringToSizeType( n.firstChild().firstChild().toText().data() ); sizeType = stringToSizeType( n.firstChild().firstChild().toText().data() );
} else if ( prop == "sizeHint" ) { } else if ( prop == "sizeHint" ) {
@ -1950,14 +1950,14 @@ void TQWidgetFactory::createSpacer( const TQDomElement &e, TQLayout *layout )
rowspan = 1; rowspan = 1;
if ( colspan < 1 ) if ( colspan < 1 )
colspan = 1; colspan = 1;
TQSpacerItem *item = new TQSpacerItem( w, h, orient == Qt::Horizontal ? sizeType : TQSizePolicy::Minimum, TQSpacerItem *item = new TQSpacerItem( w, h, orient == TQt::Horizontal ? sizeType : TQSizePolicy::Minimum,
orient == Qt::Vertical ? sizeType : TQSizePolicy::Minimum ); orient == TQt::Vertical ? sizeType : TQSizePolicy::Minimum );
if ( layout ) { if ( layout ) {
if ( layout->inherits( "TQBoxLayout" ) ) if ( layout->inherits( "TQBoxLayout" ) )
( (TQBoxLayout*)layout )->addItem( item ); ( (TQBoxLayout*)layout )->addItem( item );
else else
( (TQGridLayout*)layout )->addMultiCell( item, row, row + rowspan - 1, col, col + colspan - 1, ( (TQGridLayout*)layout )->addMultiCell( item, row, row + rowspan - 1, col, col + colspan - 1,
orient == Qt::Horizontal ? TQt::AlignVCenter : TQt::AlignHCenter ); orient == TQt::Horizontal ? TQt::AlignVCenter : TQt::AlignHCenter );
} }
} }

@ -74,9 +74,9 @@
connect(mPopup, TQT_SIGNAL(clicked()), TQT_SLOT(popup())); connect(mPopup, TQT_SIGNAL(clicked()), TQT_SLOT(popup()));
mVolume=new L33tSlider(0,100,10,0,Qt::Horizontal, this); mVolume=new L33tSlider(0,100,10,0,TQt::Horizontal, this);
mVolume->setValue(napp->player()->volume()); mVolume->setValue(napp->player()->volume());
mSeeker=new L33tSlider(0,1000,10,0,Qt::Horizontal, this); mSeeker=new L33tSlider(0,1000,10,0,TQt::Horizontal, this);
mStatusBar=new KStatusBar(this); mStatusBar=new KStatusBar(this);

@ -637,7 +637,7 @@ navigate the header and vice versa</string>
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="title"> <property name="title">
<string>Qt::Orientation</string> <string>Orientation</string>
</property> </property>
<property name="exclusive"> <property name="exclusive">
<bool>true</bool> <bool>true</bool>

@ -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*/ ) 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( 1, true );
accessMenu->setItemEnabled( 2, 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*/ ) 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 ); overMenu->exec( p );
} }

@ -1393,13 +1393,13 @@ bool CppSupportPart::shouldSplitDocument(const KURL &url)
return false; return false;
} }
Qt::Orientation CppSupportPart::splitOrientation() const TQt::Orientation CppSupportPart::splitOrientation() const
{ {
TQString o = splitHeaderSourceConfig()->orientation(); TQString o = splitHeaderSourceConfig()->orientation();
if ( o == "Vertical" ) if ( o == "Vertical" )
return Qt::Vertical; return TQt::Vertical;
else else
return Qt::Horizontal; return TQt::Horizontal;
} }
void CppSupportPart::slotNewClass() void CppSupportPart::slotNewClass()
@ -2082,9 +2082,9 @@ void CppSupportPart::splitHeaderSourceConfigStored( )
{ {
TQString o = splitHeaderSourceConfig()->orientation(); TQString o = splitHeaderSourceConfig()->orientation();
if ( o == "Vertical" ) if ( o == "Vertical" )
emit splitOrientationChanged( Qt::Vertical ); emit splitOrientationChanged( TQt::Vertical );
else if ( o == "Horizontal" ) else if ( o == "Horizontal" )
emit splitOrientationChanged( Qt::Horizontal ); emit splitOrientationChanged( TQt::Horizontal );
} }
void CppSupportPart::removeWithReferences( const TQString & fileName ) void CppSupportPart::removeWithReferences( const TQString & fileName )

@ -289,7 +289,7 @@ protected:
virtual TQString formatClassName( const TQString &name ); virtual TQString formatClassName( const TQString &name );
virtual TQString unformatClassName( const TQString &name ); virtual TQString unformatClassName( const TQString &name );
virtual bool shouldSplitDocument( const KURL &url ); virtual bool shouldSplitDocument( const KURL &url );
virtual Qt::Orientation splitOrientation() const; virtual TQt::Orientation splitOrientation() const;
virtual void addMethod( ClassDom klass ); virtual void addMethod( ClassDom klass );
virtual void addAttribute( ClassDom klass ); virtual void addAttribute( ClassDom klass );

@ -73,7 +73,7 @@ Dbg_PS_Dialog::Dbg_PS_Dialog(TQWidget *parent, const char *name)
topLayout->addWidget(pids_); topLayout->addWidget(pids_);
pids_->setFont(TDEGlobalSettings::fixedFont()); pids_->setFont(TDEGlobalSettings::fixedFont());
KButtonBox *buttonbox = new KButtonBox(this, Qt::Horizontal); KButtonBox *buttonbox = new KButtonBox(this, TQt::Horizontal);
buttonbox->addStretch(); buttonbox->addStretch();
TQPushButton *ok = buttonbox->addButton(KStdGuiItem::ok()); TQPushButton *ok = buttonbox->addButton(KStdGuiItem::ok());
TQPushButton *cancel = buttonbox->addButton(KStdGuiItem::cancel()); TQPushButton *cancel = buttonbox->addButton(KStdGuiItem::cancel());

@ -107,7 +107,7 @@ void DbgMoveHandle::mousePressEvent(TQMouseEvent *e)
if (moving_) if (moving_)
return; return;
if (e->button() == Qt::RightButton) { if (e->button() == TQt::RightButton) {
TDEPopupMenu *menu = new TDEPopupMenu(this); TDEPopupMenu *menu = new TDEPopupMenu(this);
menu->insertTitle(i18n("Debug Toolbar")); menu->insertTitle(i18n("Debug Toolbar"));
menu->insertItem(i18n("Dock to Panel"), menu->insertItem(i18n("Dock to Panel"),
@ -233,13 +233,13 @@ void DbgDocker::mousePressEvent(TQMouseEvent *e)
return; return;
switch (e->button()) { switch (e->button()) {
case Qt::LeftButton: case TQt::LeftButton:
{ {
// Not really a click, but it'll hold for the time being !!! // Not really a click, but it'll hold for the time being !!!
emit clicked(); emit clicked();
break; break;
} }
case Qt::RightButton: case TQt::RightButton:
{ {
TDEPopupMenu* menu = new TDEPopupMenu(this); TDEPopupMenu* menu = new TDEPopupMenu(this);
menu->insertTitle(i18n("Debug Toolbar")); menu->insertTitle(i18n("Debug Toolbar"));

@ -686,7 +686,7 @@ void GDBBreakpointWidget::slotRemoveAllBreakpoints()
void GDBBreakpointWidget::slotRowDoubleClicked(int row, int col, int btn, const TQPoint &) 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; // kdDebug(9012) << "in slotRowSelected row=" << row << endl;
BreakpointTableRow* btr = (BreakpointTableRow *) m_table->item(row, Control); BreakpointTableRow* btr = (BreakpointTableRow *) m_table->item(row, Control);

@ -181,13 +181,13 @@ class %{APPNAMESC} < KDE::MainWindow
if @printer.nil? then @printer = KDE::Printer.new end if @printer.nil? then @printer = KDE::Printer.new end
if @printer.setup(self) if @printer.setup(self)
# setup the printer. with Qt, you always "print" to a # 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 # or paper
p = Qt::Painter.new p = TQt::Painter.new
p.begin(@printer) p.begin(@printer)
# we let our view do the actual printing # 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()) @view.print(p, metrics.height(), metrics.width())
# and send the result to the printer # and send the result to the printer

@ -10,7 +10,7 @@
@author %{AUTHOR} <%{EMAIL}> @author %{AUTHOR} <%{EMAIL}>
@version %{VERSION} @version %{VERSION}
=end =end
class %{APPNAMESC}View < Qt::Widget class %{APPNAMESC}View < TQt::Widget
# #
# Use this signal to change the content of the statusbar # Use this signal to change the content of the statusbar
@ -32,7 +32,7 @@ class %{APPNAMESC}View < Qt::Widget
@dcop = %{APPNAMESC}Iface.new(self) @dcop = %{APPNAMESC}Iface.new(self)
# setup our layout manager to automatically add our widgets # 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) top_layout.setAutoAdd(true)
# we want to look for all components that satisfy our needs. the # we want to look for all components that satisfy our needs. the

@ -15,24 +15,24 @@ class %{APPNAMESC}Preferences < KDE::DialogBase
end end
end end
class %{APPNAMESC}PrefPageOne < Qt::Frame class %{APPNAMESC}PrefPageOne < TQt::Frame
def initialize(parent) def initialize(parent)
super(parent) super(parent)
layout = Qt::HBoxLayout.new(self) layout = TQt::HBoxLayout.new(self)
layout.setAutoAdd(true) layout.setAutoAdd(true)
Qt::Label.new(i18n("Add something here"), self) TQt::Label.new(i18n("Add something here"), self)
end end
end end
class %{APPNAMESC}PrefPageTwo < Qt::Frame class %{APPNAMESC}PrefPageTwo < TQt::Frame
def initialize(parent) def initialize(parent)
super(parent) super(parent)
layout = Qt::HBoxLayout.new(self) layout = TQt::HBoxLayout.new(self)
layout.setAutoAdd(true) layout.setAutoAdd(true)
Qt::Label.new(i18n("Add something here"), self) TQt::Label.new(i18n("Add something here"), self)
end end
end end

@ -2,8 +2,8 @@
require 'Qt' require 'Qt'
app = Qt::Application.new(ARGV) app = TQt::Application.new(ARGV)
widget = Qt::Widget.new widget = TQt::Widget.new
widget.setGeometry(50, 500, 400, 400) widget.setGeometry(50, 500, 400, 400)
widget.caption = "Hello World!" widget.caption = "Hello World!"

@ -1,7 +1,7 @@
require 'Qt' require 'Qt'
require '%{APPNAMELC}.rb' require '%{APPNAMELC}.rb'
a = Qt::Application.new( ARGV ) a = TQt::Application.new( ARGV )
mw = %{APPNAMESC}.new mw = %{APPNAMESC}.new
mw.caption = "%{APPNAMESC}" mw.caption = "%{APPNAMESC}"
mw.show mw.show

@ -1,4 +1,4 @@
class %{APPNAMESC} < Qt::MainWindow class %{APPNAMESC} < TQt::MainWindow
Q_SLOTS 'newDoc()', Q_SLOTS 'newDoc()',
'choose()', 'choose()',
@ -11,61 +11,61 @@ class %{APPNAMESC} < Qt::MainWindow
def initialize() def initialize()
super( nil, "%{APPNAMESC}", WDestructiveClose ) 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") ) fileTools.setLabel( tr("File Operations") )
openIcon = Qt::Pixmap.new( "fileopen.xpm" ) openIcon = TQt::Pixmap.new( "fileopen.xpm" )
fileOpen = Qt::ToolButton.new( Qt::IconSet.new(openIcon), tr("Open File"), nil, fileOpen = TQt::ToolButton.new( TQt::IconSet.new(openIcon), tr("Open File"), nil,
self, SLOT('choose()'), fileTools, "open file" ) self, SLOT('choose()'), fileTools, "open file" )
saveIcon = Qt::Pixmap.new( "filesave.xpm" ) saveIcon = TQt::Pixmap.new( "filesave.xpm" )
fileSave = Qt::ToolButton.new( Qt::IconSet.new(saveIcon), tr("Save File"), nil, fileSave = TQt::ToolButton.new( TQt::IconSet.new(saveIcon), tr("Save File"), nil,
self, SLOT('save()'), fileTools, "save file" ) self, SLOT('save()'), fileTools, "save file" )
printIcon = Qt::Pixmap.new( "fileprint.xpm" ) printIcon = TQt::Pixmap.new( "fileprint.xpm" )
filePrint = Qt::ToolButton.new( Qt::IconSet.new(printIcon), tr("Print File"), nil, filePrint = TQt::ToolButton.new( TQt::IconSet.new(printIcon), tr("Print File"), nil,
self, SLOT('print()'), fileTools, "print file" ) self, SLOT('print()'), fileTools, "print file" )
Qt::WhatsThis.whatsThisButton( fileTools ) TQt::WhatsThis.whatsThisButton( fileTools )
fileOpenText = tr('<p><img source="fileopen"> ' + fileOpenText = tr('<p><img source="fileopen"> ' +
"Click this button to open a <em>new file</em>. <br>" + "Click this button to open a <em>new file</em>. <br>" +
"You can also select the <b>Open</b> command " + "You can also select the <b>Open</b> command " +
"from the <b>File</b> menu.</p>") "from the <b>File</b> menu.</p>")
Qt::WhatsThis.add( fileOpen, fileOpenText ) TQt::WhatsThis.add( fileOpen, fileOpenText )
Qt::MimeSourceFactory.defaultFactory().setPixmap( "fileopen", openIcon ) TQt::MimeSourceFactory.defaultFactory().setPixmap( "fileopen", openIcon )
fileSaveText = tr("<p>Click this button to save the file you " + fileSaveText = tr("<p>Click this button to save the file you " +
"are editing. You will be prompted for a file name.\n" + "are editing. You will be prompted for a file name.\n" +
"You can also select the <b>Save</b> command " + "You can also select the <b>Save</b> command " +
"from the <b>File</b> menu.</p>") "from the <b>File</b> menu.</p>")
Qt::WhatsThis.add( fileSave, fileSaveText ) TQt::WhatsThis.add( fileSave, fileSaveText )
filePrintText = tr("Click this button to print the file you " + filePrintText = tr("Click this button to print the file you " +
"are editing.\n You can also select the Print " + "are editing.\n You can also select the Print " +
"command from the File menu.") "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 ) 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..."), id = file.insertItem( TQt::IconSet.new(openIcon), tr("&Open..."),
self, SLOT('choose()'), Qt::KeySequence.new(CTRL+Key_O) ) self, SLOT('choose()'), TQt::KeySequence.new(CTRL+Key_O) )
file.setWhatsThis( id, fileOpenText ) file.setWhatsThis( id, fileOpenText )
id = file.insertItem( Qt::IconSet.new(saveIcon), tr("&Save"), id = file.insertItem( TQt::IconSet.new(saveIcon), tr("&Save"),
self, SLOT('save()'), Qt::KeySequence.new(CTRL+Key_S) ) self, SLOT('save()'), TQt::KeySequence.new(CTRL+Key_S) )
file.setWhatsThis( id, fileSaveText ) file.setWhatsThis( id, fileSaveText )
id = file.insertItem( tr("Save &As..."), self, SLOT('saveAs()') ) id = file.insertItem( tr("Save &As..."), self, SLOT('saveAs()') )
@ -73,27 +73,27 @@ class %{APPNAMESC} < Qt::MainWindow
file.insertSeparator() file.insertSeparator()
id = file.insertItem( Qt::IconSet.new(printIcon), tr("&Print..."), id = file.insertItem( TQt::IconSet.new(printIcon), tr("&Print..."),
self, SLOT('print()'), Qt::KeySequence.new(CTRL+Key_P) ) self, SLOT('print()'), TQt::KeySequence.new(CTRL+Key_P) )
file.setWhatsThis( id, filePrintText ) file.setWhatsThis( id, filePrintText )
file.insertSeparator() 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() menuBar().insertSeparator()
help = Qt::PopupMenu.new( self ) help = TQt::PopupMenu.new( self )
menuBar().insertItem( tr("&Help"), help ) 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.insertItem( tr("About &Qt"), self, SLOT('aboutQt()') )
help.insertSeparator() 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() @e.setFocus()
setCentralWidget( @e ) setCentralWidget( @e )
statusBar().message( tr("Ready"), 2000 ) statusBar().message( tr("Ready"), 2000 )
@ -110,7 +110,7 @@ class %{APPNAMESC} < Qt::MainWindow
end end
def choose() def choose()
fn = Qt::FileDialog.getOpenFileName( nil, nil, fn = TQt::FileDialog.getOpenFileName( nil, nil,
self) self)
if !fn.nil? if !fn.nil?
load( fn ) load( fn )
@ -121,12 +121,12 @@ class %{APPNAMESC} < Qt::MainWindow
def load( filename ) def load( filename )
f = Qt::File.new( filename ) f = TQt::File.new( filename )
if !f.open( Qt::IO_ReadOnly ) if !f.open( TQt::IO_ReadOnly )
return return
end end
ts = Qt::TextStream.new( f ) ts = TQt::TextStream.new( f )
@e.setText( ts.read() ) @e.setText( ts.read() )
@e.setModified( false ) @e.setModified( false )
setCaption( filename ) setCaption( filename )
@ -141,14 +141,14 @@ class %{APPNAMESC} < Qt::MainWindow
end end
text = @e.text() text = @e.text()
f = Qt::File.new( @filename ) f = TQt::File.new( @filename )
if !f.open( Qt::IO_WriteOnly ) if !f.open( TQt::IO_WriteOnly )
statusBar().message( tr("Could not write to %s" % @filename), statusBar().message( tr("Could not write to %s" % @filename),
2000 ) 2000 )
return return
end end
t = Qt::TextStream.new( f ) t = TQt::TextStream.new( f )
t << text t << text
f.close() f.close()
@ -161,7 +161,7 @@ class %{APPNAMESC} < Qt::MainWindow
def saveAs() def saveAs()
fn = Qt::FileDialog.getSaveFileName( nil, nil, fn = TQt::FileDialog.getSaveFileName( nil, nil,
self ) self )
if !fn.nil? if !fn.nil?
@filename = fn @filename = fn
@ -173,13 +173,13 @@ class %{APPNAMESC} < Qt::MainWindow
def print() def print()
# ###### Rewrite to use Qt::SimpleRichText to print here as well # ###### Rewrite to use TQt::SimpleRichText to print here as well
margin = 10 margin = 10
pageNo = 1 pageNo = 1
if @printer.setup(self) # @printer dialog if @printer.setup(self) # @printer dialog
statusBar().message( tr("Printing...") ) statusBar().message( tr("Printing...") )
p = Qt::Painter.new p = TQt::Painter.new
if !p.begin( @printer ) # paint on @printer if !p.begin( @printer ) # paint on @printer
return return
end end
@ -187,7 +187,7 @@ class %{APPNAMESC} < Qt::MainWindow
p.setFont( @e.font() ) p.setFont( @e.font() )
yPos = 0 # y-position for each line yPos = 0 # y-position for each line
fm = p.fontMetrics() fm = p.fontMetrics()
metrics = Qt::PaintDeviceMetrics.new( @printer ) # need width/height metrics = TQt::PaintDeviceMetrics.new( @printer ) # need width/height
# of @printer surface # of @printer surface
for i in 0...@e.lines() do for i in 0...@e.lines() do
if margin + yPos > metrics.height() - margin if margin + yPos > metrics.height() - margin
@ -220,7 +220,7 @@ class %{APPNAMESC} < Qt::MainWindow
return return
end 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" + tr("Do you want to save the changes" +
" to the document?"), " to the document?"),
tr("Yes"), tr("No"), tr("Cancel"), tr("Yes"), tr("No"), tr("Cancel"),
@ -240,14 +240,14 @@ class %{APPNAMESC} < Qt::MainWindow
private private
def about() 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 " + tr("This example demonstrates simple use of " +
"Qt::MainWindow,\nQt::MenuBar and Qt::ToolBar.")) "TQt::MainWindow,\nTQt::MenuBar and TQt::ToolBar."))
end end
def aboutQt() def aboutQt()
Qt::MessageBox.aboutQt( self, tr("Qt Application Example") ) TQt::MessageBox.aboutQt( self, tr("Qt Application Example") )
end end
end end

@ -71,7 +71,7 @@ Dbg_PS_Dialog::Dbg_PS_Dialog(TQWidget *parent, const char *name)
topLayout->addWidget(pids_, 5); topLayout->addWidget(pids_, 5);
pids_->setFont(TDEGlobalSettings::fixedFont()); 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()); TQPushButton *ok = buttonbox->addButton(KStdGuiItem::ok());
buttonbox->addStretch(); buttonbox->addStretch();
TQPushButton *cancel = buttonbox->addButton(KStdGuiItem::cancel()); TQPushButton *cancel = buttonbox->addButton(KStdGuiItem::cancel());

@ -113,7 +113,7 @@ void DbgMoveHandle::mousePressEvent(TQMouseEvent *e)
if (moving_) if (moving_)
return; return;
if (e->button() == Qt::RightButton) { if (e->button() == TQt::RightButton) {
TDEPopupMenu *menu = new TDEPopupMenu(this); TDEPopupMenu *menu = new TDEPopupMenu(this);
menu->insertTitle(i18n("Debug Toolbar")); menu->insertTitle(i18n("Debug Toolbar"));
menu->insertItem(i18n("Dock to Panel"), menu->insertItem(i18n("Dock to Panel"),
@ -232,13 +232,13 @@ void DbgDocker::mousePressEvent(TQMouseEvent *e)
return; return;
switch (e->button()) { switch (e->button()) {
case Qt::LeftButton: case TQt::LeftButton:
{ {
// Not really a click, but it'll hold for the time being !!! // Not really a click, but it'll hold for the time being !!!
emit clicked(); emit clicked();
break; break;
} }
case Qt::RightButton: case TQt::RightButton:
{ {
TDEPopupMenu* menu = new TDEPopupMenu(this); TDEPopupMenu* menu = new TDEPopupMenu(this);
menu->insertTitle(i18n("Debug Toolbar")); menu->insertTitle(i18n("Debug Toolbar"));

@ -269,7 +269,7 @@ class Context
for c in ary for c in ary
str = debug_inspect(obj.module_eval(c)) str = debug_inspect(obj.module_eval(c))
if c.to_s != str && 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 !~ /^DCOPMeta$|^Meta$|SCRIPT_LINES__|TRUE|FALSE|NIL|MatchingData/ &&
c.to_s !~ /^PLATFORM$|^RELEASE_DATE$|^VERSION$|SilentClient|SilentObject/ && c.to_s !~ /^PLATFORM$|^RELEASE_DATE$|^VERSION$|SilentClient|SilentObject/ &&
c.to_s !~ /^Client$|^Context$|^DEBUG_LAST_CMD$|^MUTEX$|^Mutex$|^SimpleDelegater$|^Delegater$/ && c.to_s !~ /^Client$|^Context$|^DEBUG_LAST_CMD$|^MUTEX$|^Mutex$|^SimpleDelegater$|^Delegater$/ &&

@ -634,7 +634,7 @@ void RDBBreakpointWidget::slotRemoveAllBreakpoints()
void RDBBreakpointWidget::slotRowDoubleClicked(int row, int col, int btn, const TQPoint &) 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; // kdDebug(9012) << "in slotRowSelected row=" << row << endl;
BreakpointTableRow* btr = (BreakpointTableRow *) m_table->item(row, Control); BreakpointTableRow* btr = (BreakpointTableRow *) m_table->item(row, Control);

@ -68,9 +68,9 @@ bool KDevLanguageSupport::shouldSplitDocument(const KURL &url)
return false; return false;
} }
Qt::Orientation KDevLanguageSupport::splitOrientation() const TQt::Orientation KDevLanguageSupport::splitOrientation() const
{ {
return Qt::Vertical; return TQt::Vertical;
} }
void KDevLanguageSupport::addClass() void KDevLanguageSupport::addClass()

@ -135,8 +135,8 @@ public:
virtual bool shouldSplitDocument( const KURL &url ); virtual bool shouldSplitDocument( const KURL &url );
/**Returns the language parts Split View orientation. /**Returns the language parts Split View orientation.
By default Qt::Vertical.*/ By default TQt::Vertical.*/
virtual Qt::Orientation splitOrientation() const; virtual TQt::Orientation splitOrientation() const;
/**Opens a "New class" dialog and adds the configured class to the sources. /**Opens a "New class" dialog and adds the configured class to the sources.
Define NewClass feature if you reimplement this method.*/ Define NewClass feature if you reimplement this method.*/
@ -255,7 +255,7 @@ signals:
void addedSourceInfo( const TQString& fileName ); void addedSourceInfo( const TQString& fileName );
/**Emitted when the language part changes the Split View orientation.*/ /**Emitted when the language part changes the Split View orientation.*/
void splitOrientationChanged( Qt::Orientation orientation ); void splitOrientationChanged( TQt::Orientation orientation );
}; };
#endif #endif

@ -50,7 +50,7 @@ void KTabBar::closeOthersSlot()
void KTabBar::mousePressEvent(TQMouseEvent *e) void KTabBar::mousePressEvent(TQMouseEvent *e)
{ {
if(e->button() == Qt::RightButton) { if(e->button() == TQt::RightButton) {
TQTab *tab = selectTab(e->pos() ); TQTab *tab = selectTab(e->pos() );
if( tab == 0L ) return; if( tab == 0L ) return;

@ -46,7 +46,7 @@ void PDateEdit::drawViewer(TQPainter* p, const TQColorGroup& cg, const TQRect& r
p->setPen(TQt::NoPen); p->setPen(TQt::NoPen);
p->setBrush(cg.background()); p->setBrush(cg.background());
p->drawRect(r); 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) void PDateEdit::setValue(const TQVariant& value, bool emitChange)

@ -45,7 +45,7 @@ void PDateTimeEdit::drawViewer(TQPainter* p, const TQColorGroup& cg, const TQRec
p->setPen(TQt::NoPen); p->setPen(TQt::NoPen);
p->setBrush(cg.background()); p->setBrush(cg.background());
p->drawRect(r); 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) void PDateTimeEdit::setValue(const TQVariant& value, bool emitChange)

@ -466,7 +466,7 @@ void QComboView::paintEvent( TQPaintEvent * )
void QComboView::mousePressEvent( TQMouseEvent *e ) void QComboView::mousePressEvent( TQMouseEvent *e )
{ {
if ( e->button() != Qt::LeftButton ) if ( e->button() != TQt::LeftButton )
return; return;
if ( d->discardNextMousePress ) { if ( d->discardNextMousePress ) {
d->discardNextMousePress = FALSE; 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)) { style().styleHint(TQStyle::SH_ComboBox_ListMouseTracking, this)) {
// tqWarning("event filter:: emu"); // tqWarning("event filter:: emu");
TQWidget *mouseW = TQApplication::widgetAt( e->globalPos(), TRUE ); TQWidget *mouseW = TQApplication::widgetAt( e->globalPos(), TRUE );

@ -51,7 +51,7 @@ HierarchyDialog::HierarchyDialog( ClassViewPart *part )
TQPushButton *save_button = new KPushButton(KStdGuiItem::save(), this); TQPushButton *save_button = new KPushButton(KStdGuiItem::save(), this);
TQPushButton *refresh_button = new KPushButton(i18n("Refresh"), 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"); digraph = new DigraphView(splitter, "digraph view");
// member_tree = new ClassToolWidget(part, splitter); // member_tree = new ClassToolWidget(part, splitter);

@ -148,7 +148,7 @@ void CTags2Widget::updateDBDateLabel( )
TQFileInfo tagsdb(tagFiles[0]); TQFileInfo tagsdb(tagFiles[0]);
if ( tagsdb.exists() ) if ( tagsdb.exists() )
{ {
datetime_label->setText( tagsdb.created().date().toString( Qt::ISODate ) ); datetime_label->setText( tagsdb.created().date().toString( TQt::ISODate ) );
} }
else else
{ {

@ -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 void BookmarkView::itemMouseButtonPressed(int button, TQListViewItem *item, const TQPoint &pos, int // c
) )
{ {
if ((button != Qt::RightButton) || (!item)) if ((button != TQt::RightButton) || (!item))
return; return;
DocumentationItem *docItem = dynamic_cast<DocumentationItem*>(item); DocumentationItem *docItem = dynamic_cast<DocumentationItem*>(item);
if (!docItem) if (!docItem)

@ -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 void ContentsView::itemMouseButtonPressed(int button, TQListViewItem *item, const TQPoint &pos, int // c
) )
{ {
if ((button != Qt::RightButton) || (!item)) if ((button != TQt::RightButton) || (!item))
return; return;
DocumentationItem *docItem = dynamic_cast<DocumentationItem*>(item); DocumentationItem *docItem = dynamic_cast<DocumentationItem*>(item);
if (!docItem) if (!docItem)

@ -75,7 +75,7 @@ FindDocumentation::~FindDocumentation()
void FindDocumentation::buttonPressedOnItem( int button, TQListViewItem * item, const TQPoint & pos, int // c void FindDocumentation::buttonPressedOnItem( int button, TQListViewItem * item, const TQPoint & pos, int // c
) )
{ {
if ((button != Qt::RightButton) || (!item)) if ((button != TQt::RightButton) || (!item))
return; return;
DocumentationItem *docItem = dynamic_cast<DocumentationItem*>(item); DocumentationItem *docItem = dynamic_cast<DocumentationItem*>(item);
if (!docItem) if (!docItem)

@ -162,7 +162,7 @@ bool IndexView::eventFilter(TQObject *watched, TQEvent *e)
void IndexView::itemMouseButtonPressed(int button, TQListBoxItem *item, const TQPoint &pos) void IndexView::itemMouseButtonPressed(int button, TQListBoxItem *item, const TQPoint &pos)
{ {
if ((button != Qt::RightButton) || (!item)) if ((button != TQt::RightButton) || (!item))
return; return;
IndexItem *docItem = dynamic_cast<IndexItem*>(item); IndexItem *docItem = dynamic_cast<IndexItem*>(item);
if (!docItem) if (!docItem)

@ -303,7 +303,7 @@ void SearchView::executed(TQListViewItem *item)
void SearchView::itemMouseButtonPressed(int button, TQListViewItem *item, const TQPoint &pos, int // c void SearchView::itemMouseButtonPressed(int button, TQListViewItem *item, const TQPoint &pos, int // c
) )
{ {
if ((button != Qt::RightButton) || (!item)) if ((button != TQt::RightButton) || (!item))
return; return;
DocumentationItem *docItem = dynamic_cast<DocumentationItem*>(item); DocumentationItem *docItem = dynamic_cast<DocumentationItem*>(item);
if (!docItem) if (!docItem)

@ -585,7 +585,7 @@ KFSConfigPage::KFSConfigPage( TQWidget *parent, const char *name, KDevFileSelect
lo->setSpacing( spacing ); lo->setSpacing( spacing );
// Toolbar - a lot for a little... // 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 = new TDEActionSelector( gbToolbar );
acSel->setAvailableLabel( i18n("A&vailable actions:") ); acSel->setAvailableLabel( i18n("A&vailable actions:") );
acSel->setSelectedLabel( i18n("S&elected 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() ) ); connect( acSel, TQT_SIGNAL( movedDown( TQListBoxItem * ) ), this, TQT_SLOT( slotChanged() ) );
// Sync // 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 ); cbSyncActive = new TQCheckBox( i18n("When a docu&ment becomes active"), gbSync );
cbSyncOpen = new TQCheckBox( i18n("When a document is o&pened"), gbSync ); cbSyncOpen = new TQCheckBox( i18n("When a document is o&pened"), gbSync );
cbSyncShow = new TQCheckBox( i18n("When the file selector becomes visible"), 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() ) ); connect( sbFilterHistLength, TQT_SIGNAL( valueChanged ( int ) ), this, TQT_SLOT( slotChanged() ) );
// Session // 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 ); cbSesLocation = new TQCheckBox( i18n("Restore loca&tion"), gbSession );
cbSesFilter = new TQCheckBox( i18n("Restore last f&ilter"), gbSession ); cbSesFilter = new TQCheckBox( i18n("Restore last f&ilter"), gbSession );
lo->addWidget( gbSession ); lo->addWidget( gbSession );

@ -389,7 +389,7 @@ void MakeWidget::prevError()
void MakeWidget::contentsMouseReleaseEvent( TQMouseEvent* e ) void MakeWidget::contentsMouseReleaseEvent( TQMouseEvent* e )
{ {
TQTextEdit::contentsMouseReleaseEvent(e); TQTextEdit::contentsMouseReleaseEvent(e);
if ( e->button() != Qt::LeftButton ) if ( e->button() != TQt::LeftButton )
return; return;
searchItem(paragraphAt(e->pos())); searchItem(paragraphAt(e->pos()));
} }

@ -112,11 +112,11 @@ void ReplaceView::slotMousePressed(int btn, TQListViewItem* i, const TQPoint& po
if ( ReplaceItem * item = dynamic_cast<ReplaceItem*>( i ) ) if ( ReplaceItem * item = dynamic_cast<ReplaceItem*>( i ) )
{ {
if ( btn == Qt::RightButton ) if ( btn == TQt::RightButton )
{ {
// popup menu? // popup menu?
} }
else if ( btn == Qt::LeftButton ) else if ( btn == TQt::LeftButton )
{ {
// map pos to item/column and call ReplacetItem::activate(pos) // map pos to item/column and call ReplacetItem::activate(pos)
item->activate( col, viewport()->mapFromGlobal( pos ) - TQPoint( 0, itemRect(item).top() ) ); item->activate( col, viewport()->mapFromGlobal( pos ) - TQPoint( 0, itemRect(item).top() ) );

@ -128,7 +128,7 @@ void TextToolsWidget::slotItemPressed(int button, TQListViewItem *item)
cursorIface->setCursorPosition(line, col); cursorIface->setCursorPosition(line, col);
} }
if (button == Qt::MidButton) { if (button == TQt::MidButton) {
KTextEditor::SelectionInterface *selectionIface KTextEditor::SelectionInterface *selectionIface
= dynamic_cast<KTextEditor::SelectionInterface*>(rwpart); = dynamic_cast<KTextEditor::SelectionInterface*>(rwpart);
if (selectionIface) { if (selectionIface) {
@ -144,7 +144,7 @@ void TextToolsWidget::slotItemPressed(int button, TQListViewItem *item)
void TextToolsWidget::slotReturnPressed(TQListViewItem *item) void TextToolsWidget::slotReturnPressed(TQListViewItem *item)
{ {
slotItemPressed(Qt::LeftButton, item); slotItemPressed(TQt::LeftButton, item);
} }

@ -63,7 +63,7 @@ void LanguageSelectWidget::init()
TQVBoxLayout *layout = new TQVBoxLayout(this); TQVBoxLayout *layout = new TQVBoxLayout(this);
TQGroupBox * groupBox1 = new TQGroupBox( i18n("Additional Language Support"), 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()->setSpacing( 6 );
groupBox1->layout()->setMargin( 11 ); groupBox1->layout()->setMargin( 11 );
TQVBoxLayout * groupBox1Layout = new TQVBoxLayout( groupBox1->layout() ); TQVBoxLayout * groupBox1Layout = new TQVBoxLayout( groupBox1->layout() );
@ -81,7 +81,7 @@ void LanguageSelectWidget::init()
layout->addWidget( groupBox1 ); layout->addWidget( groupBox1 );
TQGroupBox * groupBox2 = new TQGroupBox( i18n("Description"), this ); TQGroupBox * groupBox2 = new TQGroupBox( i18n("Description"), this );
groupBox2->setColumnLayout(0, Qt::Vertical ); groupBox2->setColumnLayout(0, TQt::Vertical );
groupBox2->layout()->setSpacing( 6 ); groupBox2->layout()->setSpacing( 6 );
groupBox2->layout()->setMargin( 11 ); groupBox2->layout()->setMargin( 11 );
TQVBoxLayout * groupBox2Layout = new TQVBoxLayout( groupBox2->layout() ); TQVBoxLayout * groupBox2Layout = new TQVBoxLayout( groupBox2->layout() );

@ -57,12 +57,12 @@ MultiBuffer::MultiBuffer( TQWidget *parent )
API::getInstance() ->languageSupport() ) API::getInstance() ->languageSupport() )
{ {
setOrientation( lang->splitOrientation() ); setOrientation( lang->splitOrientation() );
connect( lang, TQT_SIGNAL( splitOrientationChanged( Qt::Orientation ) ), connect( lang, TQT_SIGNAL( splitOrientationChanged( TQt::Orientation ) ),
this, TQT_SLOT( setOrientation( Qt::Orientation ) ) ); this, TQT_SLOT( setOrientation( TQt::Orientation ) ) );
} }
else else
{ {
setOrientation( Qt::Vertical ); setOrientation( TQt::Vertical );
} }
} }
@ -249,7 +249,7 @@ void MultiBuffer::show()
TQSplitter::show(); TQSplitter::show();
} }
void MultiBuffer::setOrientation( Qt::Orientation orientation ) void MultiBuffer::setOrientation( TQt::Orientation orientation )
{ {
TQSplitter::setOrientation( orientation ); TQSplitter::setOrientation( orientation );
} }

@ -67,7 +67,7 @@ public:
public slots: public slots:
virtual void show(); virtual void show();
virtual void setOrientation( Qt::Orientation ); virtual void setOrientation( TQt::Orientation );
void activePartChanged( const KURL &url ); void activePartChanged( const KURL &url );
protected: protected:

@ -34,7 +34,7 @@ DMainWindow::DMainWindow(TQWidget *parent, const char *name)
{ {
loadSettings(); loadSettings();
createToolWindows(); createToolWindows();
m_central = new Ideal::DockSplitter(Qt::Horizontal, this); m_central = new Ideal::DockSplitter(TQt::Horizontal, this);
m_activeTabWidget = createTab(); m_activeTabWidget = createTab();
m_central->addDock(0, 0, m_activeTabWidget); m_central->addDock(0, 0, m_activeTabWidget);
setCentralWidget(m_central); setCentralWidget(m_central);

@ -23,16 +23,16 @@
namespace Ideal { 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) :TQSplitter(parent, name), m_orientation(orientation)
{ {
switch (m_orientation) switch (m_orientation)
{ {
case Qt::Horizontal: case TQt::Horizontal:
setOrientation(Qt::Vertical); setOrientation(TQt::Vertical);
break; break;
case Qt::Vertical: case TQt::Vertical:
setOrientation(Qt::Horizontal); setOrientation(TQt::Horizontal);
break; break;
} }
setOpaqueResize(true); setOpaqueResize(true);
@ -73,11 +73,11 @@ void DockSplitter::appendSplitter()
{ {
switch (m_orientation) switch (m_orientation)
{ {
case Qt::Horizontal: case TQt::Horizontal:
m_splitters.append(new TQSplitter(Qt::Horizontal, this)); m_splitters.append(new TQSplitter(TQt::Horizontal, this));
break; break;
case Qt::Vertical: case TQt::Vertical:
m_splitters.append(new TQSplitter(Qt::Vertical, this)); m_splitters.append(new TQSplitter(TQt::Vertical, this));
break; break;
} }
m_splitters[m_splitters.size()-1]->setOpaqueResize(true); m_splitters[m_splitters.size()-1]->setOpaqueResize(true);

@ -34,7 +34,7 @@ class DockSplitter: public TQSplitter {
TQ_OBJECT TQ_OBJECT
public: public:
DockSplitter(Qt::Orientation orientation, TQWidget *parent = 0, const char *name = 0); DockSplitter(TQt::Orientation orientation, TQWidget *parent = 0, const char *name = 0);
~DockSplitter(); ~DockSplitter();
void addDock(uint row, uint col, TQWidget *dock); void addDock(uint row, uint col, TQWidget *dock);
@ -53,7 +53,7 @@ protected:
bool isRowEmpty(int row); bool isRowEmpty(int row);
private: private:
Qt::Orientation m_orientation; TQt::Orientation m_orientation;
TQValueList<TQSplitter*> m_splitters; TQValueList<TQSplitter*> m_splitters;
TQValueList<TQValueList<TQWidget*> > m_docks; TQValueList<TQValueList<TQWidget*> > m_docks;
}; };

@ -227,7 +227,7 @@ void AnnotatePage::parseAnnotateOutput(TQStringList& lines)
//so we pass it as TQDateTime to the AnnotateView below //so we pass it as TQDateTime to the AnnotateView below
TQString dateString = line.mid(23, 9); TQString dateString = line.mid(23, 9);
if( !dateString.isEmpty() ) if( !dateString.isEmpty() )
logDate.setTime_t(KRFCDate::parseDate(dateString), Qt::UTC); logDate.setTime_t(KRFCDate::parseDate(dateString), TQt::UTC);
rev = line.left(13).stripWhiteSpace(); rev = line.left(13).stripWhiteSpace();
author = line.mid(14, 8).stripWhiteSpace(); author = line.mid(14, 8).stripWhiteSpace();

@ -97,7 +97,7 @@ void CVSEntry::parse( const TQString &aLine, const CVSDir& dir )
{ {
TQDateTime date( TQDateTime::fromString( timeStamp() ) ); TQDateTime date( TQDateTime::fromString( timeStamp() ) );
TQDateTime fileDateUTC; 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 ) if ( date != fileDateUTC )
m_state = Modified; m_state = Modified;
} }

@ -44,7 +44,7 @@ SvnLogViewWidget::SvnLogViewWidget(subversionPart *part, TQWidget *parent)
m_layout = new TQGridLayout( this, 1, 1, 11, 6, "SvnLogViewWidgetBaseLayout"); m_layout = new TQGridLayout( this, 1, 1, 11, 6, "SvnLogViewWidgetBaseLayout");
splitter1 = new TQSplitter( this, "splitter1" ); splitter1 = new TQSplitter( this, "splitter1" );
splitter1->setOrientation( Qt::Horizontal ); splitter1->setOrientation( TQt::Horizontal );
splitter1->setMargin(1); splitter1->setMargin(1);
listView1 = new TQListView( splitter1, "listView1" ); listView1 = new TQListView( splitter1, "listView1" );

Loading…
Cancel
Save