-// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
QtxDialog::QtxDialog( QWidget* parent, bool modal, bool allowResize, const int f, Qt::WindowFlags wf )
: QDialog( parent, (Qt::WindowFlags)( wf | Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint | Qt::Dialog |
#ifdef WIN32
- ( allowResize ? 0 : Qt::FramelessWindowHint ) |
+ ( allowResize ? (Qt::WindowType)0 : Qt::FramelessWindowHint ) |
#endif
( ( allowResize
#ifdef WIN32
// in qwidget_win.cpp flag WStyle_ContextHelp will be unset in WStyle_MinMax in switched ON
&& !( wf & Qt::WindowContextHelpButtonHint )
#endif
- ) ? Qt::WindowMaximizeButtonHint : 0 ) ) ),
+ ) ? Qt::WindowMaximizeButtonHint : (Qt::WindowType)0 ) ) ),
myInited( false ),
mySender( 0 ),
myAlignment( 0 ),
if ( e->key() == Qt::Key_Tab && e->modifiers() & Qt::ControlModifier )
{
- QObject* tab = qFindChild<QTabWidget*>( this );
+ QObject* tab = this->findChild<QTabWidget*>();
if ( tab && !property( "in_tab_event" ).toBool() ) {
setProperty( "in_tab_event", true );
QApplication::sendEvent( tab, e );
void QtxDialog::emitSignal()
{
QApplication::instance()->processEvents();
- QApplication::syncX();
-
int id = buttonId( (QAbstractButton*)mySender );
mySender = 0;