From: nds Date: Tue, 10 Jun 2008 06:55:14 +0000 (+0000) Subject: Merge with BR_QT4_Dev branch X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=87081110c3ee7fa07a775bfa6dba5d88df34b389;p=modules%2Fgui.git Merge with BR_QT4_Dev branch --- diff --git a/src/LogWindow/LogWindow.cxx b/src/LogWindow/LogWindow.cxx index fb6ef862d..ab0a237d9 100755 --- a/src/LogWindow/LogWindow.cxx +++ b/src/LogWindow/LogWindow.cxx @@ -19,9 +19,9 @@ // // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // -// File : LogWindow.cxx -// Author : Vadim SANDLER, Open CASCADE S.A. (vadim.sandler@opencascade.com) -// Module : SALOME +// File : LogWindow.cxx +// Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com) +// #include "LogWindow.h" @@ -87,12 +87,12 @@ static QString plainText( const QString& richText ) \param parent parent widget */ LogWindow::LogWindow( QWidget* parent ) -: QFrame( parent ), +: QWidget( parent ), SUIT_PopupClient() { SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr(); - QString fntSet = resMgr ? resMgr->stringValue( "Log Window", "font", QString::null ) : QString::null; + QString fntSet = resMgr ? resMgr->stringValue( "Log Window", "font", QString() ) : QString(); setFont( SUIT_Tools::stringToFont( fntSet ) ); @@ -101,7 +101,7 @@ LogWindow::LogWindow( QWidget* parent ) myView->viewport()->installEventFilter( this ); QVBoxLayout* main = new QVBoxLayout( this ); - main->setMargin( 5 ); + main->setMargin( 0 ); main->addWidget( myView ); myBannerSize = 0; @@ -178,7 +178,7 @@ bool LogWindow::eventFilter( QObject* o, QEvent* e ) contextMenuRequest( (QContextMenuEvent*)e ); return true; } - return QFrame::eventFilter( o, e ); + return QWidget::eventFilter( o, e ); } /*! @@ -354,7 +354,7 @@ void LogWindow::onSaveToFile() return; // call application-specific "Save file" dialog box - QString aName = app->getFileName( false, QString::null, QString( "*.log" ), QString::null, 0 ); + QString aName = app->getFileName( false, QString(), QString( "*.log" ), QString(), 0 ); if ( aName.isNull() ) return; diff --git a/src/LogWindow/LogWindow.h b/src/LogWindow/LogWindow.h index b1816f8c8..3461d0a68 100755 --- a/src/LogWindow/LogWindow.h +++ b/src/LogWindow/LogWindow.h @@ -19,9 +19,9 @@ // // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // -// File : LogWindow.h -// Author : Vadim SANDLER, Open CASCADE S.A. (vadim.sandler@opencascade.com) -// Module : SALOME +// File : LogWindow.h +// Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com) +// #ifndef LOGWINDOW_H #define LOGWINDOW_H @@ -38,7 +38,7 @@ #include -#include +#include #include #include @@ -49,7 +49,7 @@ class QAction; class QTextEdit; -class LOGWINDOW_EXPORT LogWindow : public QFrame, public SUIT_PopupClient +class LOGWINDOW_EXPORT LogWindow : public QWidget, public SUIT_PopupClient { Q_OBJECT