//
// 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"
\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 ) );
myView->viewport()->installEventFilter( this );
QVBoxLayout* main = new QVBoxLayout( this );
- main->setMargin( 5 );
+ main->setMargin( 0 );
main->addWidget( myView );
myBannerSize = 0;
contextMenuRequest( (QContextMenuEvent*)e );
return true;
}
- return QFrame::eventFilter( o, e );
+ return QWidget::eventFilter( o, e );
}
/*!
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;
//
// 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
#include <SUIT_PopupClient.h>
-#include <QFrame>
+#include <QWidget>
#include <QMap>
#include <QStringList>
class QAction;
class QTextEdit;
-class LOGWINDOW_EXPORT LogWindow : public QFrame, public SUIT_PopupClient
+class LOGWINDOW_EXPORT LogWindow : public QWidget, public SUIT_PopupClient
{
Q_OBJECT