summaryrefslogtreecommitdiffstats
path: root/src/widgets/qpushbutton.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/widgets/qpushbutton.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/widgets/qpushbutton.cpp')
-rw-r--r--src/widgets/qpushbutton.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/widgets/qpushbutton.cpp b/src/widgets/qpushbutton.cpp
index e43ff2408..469eb802c 100644
--- a/src/widgets/qpushbutton.cpp
+++ b/src/widgets/qpushbutton.cpp
@@ -39,7 +39,7 @@
**********************************************************************/
#include "ntqpushbutton.h"
-#ifndef QT_NO_PUSHBUTTON
+#ifndef TQT_NO_PUSHBUTTON
#include "ntqdialog.h"
#include "ntqfontmetrics.h"
#include "ntqpainter.h"
@@ -260,11 +260,11 @@ public:
{}
~TQPushButtonPrivate()
{
-#ifndef QT_NO_ICONSET
+#ifndef TQT_NO_ICONSET
delete iconset;
#endif
}
-#ifndef QT_NO_POPUPMENU
+#ifndef TQT_NO_POPUPMENU
TQGuardedPtr<TQPopupMenu> popup;
#endif
TQIconSet* iconset;
@@ -307,7 +307,7 @@ TQPushButton::TQPushButton( const TQString &text, TQWidget *parent,
The \a parent and \a name arguments are sent to the TQWidget
constructor.
*/
-#ifndef QT_NO_ICONSET
+#ifndef TQT_NO_ICONSET
TQPushButton::TQPushButton( const TQIconSet& icon, const TQString &text,
TQWidget *parent, const char *name )
: TQButton( parent, name )
@@ -334,7 +334,7 @@ void TQPushButton::init()
lastEnabled = FALSE;
hasMenuArrow = FALSE;
flt = FALSE;
-#ifndef QT_NO_DIALOG
+#ifndef TQT_NO_DIALOG
autoDefButton = ::tqt_cast<TQDialog*>(topLevelWidget()) != 0;
#else
autoDefButton = FALSE;
@@ -388,7 +388,7 @@ void TQPushButton::setDefault( bool enable )
if ( (bool)defButton == enable )
return; // no change
defButton = enable;
-#ifndef QT_NO_DIALOG
+#ifndef TQT_NO_DIALOG
if ( defButton && ::tqt_cast<TQDialog*>(topLevelWidget()) )
((TQDialog*)topLevelWidget())->setMainDefault( this );
#endif
@@ -409,7 +409,7 @@ TQSize TQPushButton::sizeHint() const
int w = 0, h = 0;
// calculate contents size...
-#ifndef QT_NO_ICONSET
+#ifndef TQT_NO_ICONSET
if ( iconSet() && !iconSet()->isNull() ) {
int iw = iconSet()->pixmap( TQIconSet::Small, TQIconSet::Normal ).width() + 4;
int ih = iconSet()->pixmap( TQIconSet::Small, TQIconSet::Normal ).height();
@@ -614,7 +614,7 @@ void TQPushButton::focusInEvent( TQFocusEvent *e )
{
if (autoDefButton && !defButton) {
defButton = TRUE;
-#ifndef QT_NO_DIALOG
+#ifndef TQT_NO_DIALOG
if ( defButton && ::tqt_cast<TQDialog*>(topLevelWidget()) )
((TQDialog*)topLevelWidget())->setDefault( this );
#endif
@@ -627,7 +627,7 @@ void TQPushButton::focusInEvent( TQFocusEvent *e )
*/
void TQPushButton::focusOutEvent( TQFocusEvent *e )
{
-#ifndef QT_NO_DIALOG
+#ifndef TQT_NO_DIALOG
if ( defButton && autoDefButton ) {
if ( ::tqt_cast<TQDialog*>(topLevelWidget()) )
((TQDialog*)topLevelWidget())->setDefault( 0 );
@@ -635,14 +635,14 @@ void TQPushButton::focusOutEvent( TQFocusEvent *e )
#endif
TQButton::focusOutEvent( e );
-#ifndef QT_NO_POPUPMENU
+#ifndef TQT_NO_POPUPMENU
if ( popup() && popup()->isVisible() ) // restore pressed status
setDown( TRUE );
#endif
}
-#ifndef QT_NO_POPUPMENU
+#ifndef TQT_NO_POPUPMENU
/*!
Associates the popup menu \a popup with this push button. This
turns the button into a menu button.
@@ -662,8 +662,8 @@ void TQPushButton::setPopup( TQPopupMenu* popup )
d->popup = popup;
setIsMenuButton( popup != 0 );
}
-#endif //QT_NO_POPUPMENU
-#ifndef QT_NO_ICONSET
+#endif //TQT_NO_POPUPMENU
+#ifndef TQT_NO_ICONSET
void TQPushButton::setIconSet( const TQIconSet& icon )
{
if ( !d )
@@ -687,8 +687,8 @@ TQIconSet* TQPushButton::iconSet() const
{
return d ? d->iconset : 0;
}
-#endif // QT_NO_ICONSET
-#ifndef QT_NO_POPUPMENU
+#endif // TQT_NO_ICONSET
+#ifndef TQT_NO_POPUPMENU
/*!
Returns the button's associated popup menu or 0 if no popup menu
has been set.
@@ -707,7 +707,7 @@ void TQPushButton::popupPressed()
if ( isDown() && popup ) {
bool horizontal = TRUE;
bool topLeft = TRUE; // ### always TRUE
-#ifndef QT_NO_TOOLBAR
+#ifndef TQT_NO_TOOLBAR
TQToolBar *tb = ::tqt_cast<TQToolBar*>(parentWidget());
if ( tb && tb->orientation() == Vertical )
horizontal = FALSE;