summaryrefslogtreecommitdiffstats
path: root/src/workspace/qworkspace.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-10-17 19:46:30 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-10-17 19:46:30 +0900
commit69d87202cb139ffe9e4b3ce92e434523b7b09b64 (patch)
tree7b133311a4d5e5394f2612dced305f815c04847b /src/workspace/qworkspace.cpp
parente07baa10b7b8e7105e02a621efadac67216c61ed (diff)
downloadtqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.tar.gz
tqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.zip
QT_NO_* -> TQT_NO_* renaming.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/workspace/qworkspace.cpp')
-rw-r--r--src/workspace/qworkspace.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/src/workspace/qworkspace.cpp b/src/workspace/qworkspace.cpp
index 08d356d1a..7df816511 100644
--- a/src/workspace/qworkspace.cpp
+++ b/src/workspace/qworkspace.cpp
@@ -39,7 +39,7 @@
**********************************************************************/
#include "ntqworkspace.h"
-#ifndef QT_NO_WORKSPACE
+#ifndef TQT_NO_WORKSPACE
#include "ntqapplication.h"
#include "../widgets/qtitlebar_p.h"
#include "ntqobjectlist.h"
@@ -323,7 +323,7 @@ TQWorkspace::init()
d->popup->insertSeparator();
d->popup->insertItem(TQIconSet(style().stylePixmap(TQStyle::SP_TitleBarCloseButton)),
tr("&Close")
-#ifndef QT_NO_ACCEL
+#ifndef TQT_NO_ACCEL
+"\t"+TQAccel::keyToString(CTRL+Key_F4)
#endif
, this, SLOT( closeActiveWindow() ) );
@@ -339,12 +339,12 @@ TQWorkspace::init()
d->toolPopup->insertItem(TQIconSet(style().stylePixmap(TQStyle::SP_TitleBarShadeButton)), tr("Sh&ade"), 6);
d->toolPopup->insertItem(TQIconSet(style().stylePixmap(TQStyle::SP_TitleBarCloseButton)),
tr("&Close")
-#ifndef QT_NO_ACCEL
+#ifndef TQT_NO_ACCEL
+"\t"+TQAccel::keyToString( CTRL+Key_F4)
#endif
, this, SLOT( closeActiveWindow() ) );
-#ifndef QT_NO_ACCEL
+#ifndef TQT_NO_ACCEL
TQAccel* a = new TQAccel( this );
a->connectItem( a->insertItem( ALT + Key_Minus),
this, SLOT( showOperationMenu() ) );
@@ -370,7 +370,7 @@ TQWorkspace::init()
setBackgroundMode( PaletteDark );
setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) );
-#ifndef QT_NO_WIDGET_TOPEXTRA
+#ifndef TQT_NO_WIDGET_TOPEXTRA
d->topCaption = topLevelWidget()->caption();
#endif
@@ -478,7 +478,7 @@ void TQWorkspace::childEvent( TQChildEvent * e)
/*! \reimp
*/
-#ifndef QT_NO_WHEELEVENT
+#ifndef TQT_NO_WHEELEVENT
void TQWorkspace::wheelEvent( TQWheelEvent *e )
{
if ( !scrollBarsEnabled() )
@@ -537,7 +537,7 @@ void TQWorkspace::activateWindow( TQWidget* w, bool change_focus )
!d->active->windowWidget()->testWFlags( WStyle_Tool ) ) {
d->active->showMaximized();
if ( d->maxtools ) {
-#ifndef QT_NO_WIDGET_TOPEXTRA
+#ifndef TQT_NO_WIDGET_TOPEXTRA
if ( w->icon() ) {
TQPixmap pm(*w->icon());
int iconSize = d->maxtools->size().height();
@@ -992,7 +992,7 @@ void TQWorkspace::showEvent( TQShowEvent *e )
dw->setResizeEnabled(TRUE);
dw->setCloseMode( TQDockWindow::Always );
dw->setResizeEnabled(FALSE);
-#ifndef QT_NO_WIDGET_TOPEXTRA
+#ifndef TQT_NO_WIDGET_TOPEXTRA
dw->setCaption(o->caption());
#endif
TQSize os(w->size());
@@ -1099,7 +1099,7 @@ void TQWorkspace::minimizeWindow( TQWidget* w)
wasMax = TRUE;
d->maxWindow = 0;
inCaptionChange = TRUE;
-#ifndef QT_NO_WIDGET_TOPEXTRA
+#ifndef TQT_NO_WIDGET_TOPEXTRA
if ( !!d->topCaption )
topLevelWidget()->setCaption( d->topCaption );
#endif
@@ -1154,7 +1154,7 @@ void TQWorkspace::normalizeWindow( TQWidget* w)
if ( c == d->maxWindow ) {
c->setGeometry( d->maxRestore );
d->maxWindow = 0;
-#ifndef QT_NO_WIDGET_TOPEXTRA
+#ifndef TQT_NO_WIDGET_TOPEXTRA
inCaptionChange = TRUE;
if ( !!d->topCaption )
topLevelWidget()->setCaption( d->topCaption );
@@ -1215,7 +1215,7 @@ void TQWorkspace::maximizeWindow( TQWidget* w)
if ( c->titlebar )
c->titlebar->setMovable( FALSE );
}
-#ifndef QT_NO_WIDGET_TOPEXTRA
+#ifndef TQT_NO_WIDGET_TOPEXTRA
inCaptionChange = TRUE;
if ( !!d->topCaption )
topLevelWidget()->setCaption( tr("%1 - [%2]")
@@ -1336,7 +1336,7 @@ bool TQWorkspace::eventFilter( TQObject *o, TQEvent * e)
static TQTime* t = 0;
static TQWorkspace* tc = 0;
-#ifndef QT_NO_MENUBAR
+#ifndef TQT_NO_MENUBAR
if ( o == d->maxtools && d->menuId != -1 ) {
switch ( e->type() ) {
case TQEvent::MouseButtonPress:
@@ -1406,7 +1406,7 @@ bool TQWorkspace::eventFilter( TQObject *o, TQEvent * e)
} else {
hideMaximizeControls();
}
-#ifndef QT_NO_WIDGET_TOPEXTRA
+#ifndef TQT_NO_WIDGET_TOPEXTRA
inCaptionChange = TRUE;
if ( !!d->topCaption )
topLevelWidget()->setCaption( d->topCaption );
@@ -1425,7 +1425,7 @@ bool TQWorkspace::eventFilter( TQObject *o, TQEvent * e)
if ( inCaptionChange )
break;
-#ifndef QT_NO_WIDGET_TOPEXTRA
+#ifndef TQT_NO_WIDGET_TOPEXTRA
inCaptionChange = TRUE;
if ( o == topLevelWidget() ) {
TQWidget *tlw = (TQWidget*)o;
@@ -1464,7 +1464,7 @@ bool TQWorkspace::eventFilter( TQObject *o, TQEvent * e)
void TQWorkspace::showMaximizeControls()
{
-#ifndef QT_NO_MENUBAR
+#ifndef TQT_NO_MENUBAR
Q_ASSERT(d->maxWindow);
TQMenuBar* b = 0;
@@ -1501,7 +1501,7 @@ void TQWorkspace::showMaximizeControls()
if ( d->maxWindow->windowWidget() &&
d->maxWindow->windowWidget()->testWFlags(WStyle_Minimize) ) {
TQToolButton* iconB = new TQToolButton( d->maxcontrols, "iconify" );
-#ifndef QT_NO_TOOLTIP
+#ifndef TQT_NO_TOOLTIP
TQToolTip::add( iconB, tr( "Minimize" ) );
#endif
l->addWidget( iconB );
@@ -1513,7 +1513,7 @@ void TQWorkspace::showMaximizeControls()
}
TQToolButton* restoreB = new TQToolButton( d->maxcontrols, "restore" );
-#ifndef QT_NO_TOOLTIP
+#ifndef TQT_NO_TOOLTIP
TQToolTip::add( restoreB, tr( "Restore Down" ) );
#endif
l->addWidget( restoreB );
@@ -1525,7 +1525,7 @@ void TQWorkspace::showMaximizeControls()
l->addSpacing( 2 );
TQToolButton* closeB = new TQToolButton( d->maxcontrols, "close" );
-#ifndef QT_NO_TOOLTIP
+#ifndef TQT_NO_TOOLTIP
TQToolTip::add( closeB, tr( "Close" ) );
#endif
l->addWidget( closeB );
@@ -1553,7 +1553,7 @@ void TQWorkspace::showMaximizeControls()
d->maxtools = new TQLabel( topLevelWidget(), "qt_maxtools" );
d->maxtools->installEventFilter( this );
}
-#ifndef QT_NO_WIDGET_TOPEXTRA
+#ifndef TQT_NO_WIDGET_TOPEXTRA
if ( d->active->windowWidget() && d->active->windowWidget()->icon() ) {
TQPixmap pm(*d->active->windowWidget()->icon());
int iconSize = d->maxcontrols->size().height();
@@ -1579,7 +1579,7 @@ void TQWorkspace::showMaximizeControls()
void TQWorkspace::hideMaximizeControls()
{
-#ifndef QT_NO_MENUBAR
+#ifndef TQT_NO_MENUBAR
if ( d->maxmenubar ) {
int mi = d->menuId;
if ( mi != -1 ) {
@@ -2078,7 +2078,7 @@ TQWorkspaceChild::TQWorkspaceChild( TQWidget* window, TQWorkspace *parent,
if (!childWidget)
return;
-#ifndef QT_NO_WIDGET_TOPEXTRA
+#ifndef TQT_NO_WIDGET_TOPEXTRA
setCaption( childWidget->caption() );
#endif
@@ -2095,7 +2095,7 @@ TQWorkspaceChild::TQWorkspaceChild( TQWidget* window, TQWorkspace *parent,
int th = titlebar ? titlebar->sizeHint().height() : 0;
if ( titlebar ) {
-#ifndef QT_NO_WIDGET_TOPEXTRA
+#ifndef TQT_NO_WIDGET_TOPEXTRA
int iconSize = th;
if( childWidget->icon() ) {
TQPixmap pm(*childWidget->icon());
@@ -2372,7 +2372,7 @@ bool TQWorkspaceChild::eventFilter( TQObject * o, TQEvent * e)
}
break;
case TQEvent::CaptionChange:
-#ifndef QT_NO_WIDGET_TOPEXTRA
+#ifndef TQT_NO_WIDGET_TOPEXTRA
setCaption( childWidget->caption() );
if ( iconw )
iconw->setCaption( childWidget->caption() );
@@ -2386,7 +2386,7 @@ bool TQWorkspaceChild::eventFilter( TQObject * o, TQEvent * e)
TQPixmap pm;
int iconSize = titlebar->size().height();
-#ifndef QT_NO_WIDGET_TOPEXTRA
+#ifndef TQT_NO_WIDGET_TOPEXTRA
if ( childWidget->icon() ) {
pm = *childWidget->icon();
if(pm.width() > iconSize || pm.height() > iconSize) {
@@ -2515,7 +2515,7 @@ void TQWorkspaceChild::enterEvent( TQEvent * )
void TQWorkspaceChild::leaveEvent( TQEvent * )
{
-#ifndef QT_NO_CURSOR
+#ifndef TQT_NO_CURSOR
if ( !widgetResizeHandler->isButtonDown() )
setCursor( arrowCursor );
#endif
@@ -2645,7 +2645,7 @@ TQWidget* TQWorkspaceChild::iconWidget() const
connect( iconw, SIGNAL( doubleClicked() ),
this, SLOT( titleBarDoubleClicked() ) );
}
-#ifndef QT_NO_WIDGET_TOPEXTRA
+#ifndef TQT_NO_WIDGET_TOPEXTRA
if ( windowWidget() ) {
iconw->setCaption( windowWidget()->caption() );
if ( windowWidget()->icon() ) {
@@ -2751,7 +2751,7 @@ void TQWorkspaceChild::setCaption( const TQString& cap )
{
if ( titlebar )
titlebar->setCaption( cap );
-#ifndef QT_NO_WIDGET_TOPEXTRA
+#ifndef TQT_NO_WIDGET_TOPEXTRA
TQWidget::setCaption( cap );
#endif
}
@@ -3003,7 +3003,7 @@ TQWorkspace::WindowMode TQWorkspace::windowMode() const
return d->wmode;
}
-#ifndef QT_NO_STYLE
+#ifndef TQT_NO_STYLE
/*!\reimp */
void TQWorkspace::styleChange( TQStyle &olds )
{
@@ -3023,4 +3023,4 @@ void TQWorkspace::styleChange( TQStyle &olds )
#include "qworkspace.moc"
-#endif // QT_NO_WORKSPACE
+#endif // TQT_NO_WORKSPACE