\param parent parent widget
*/
LogWindow::LogWindow( QWidget* parent )
-: QFrame( parent ),
+: QWidget( parent ),
SUIT_PopupClient()
{
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
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 );
}
/*!
#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
\param interp python interpreter
*/
PyConsole_Console::PyConsole_Console( QWidget* parent, PyConsole_Interp* interp )
-: QFrame( parent ),
+: QWidget( parent ),
myEditor( 0 )
{
// create python interpreter
// create editor console
QVBoxLayout* lay = new QVBoxLayout( this );
- lay->setMargin( 5 );
+ lay->setMargin( 0 );
myEditor = new PyConsole_Editor( myInterp, this );
myEditor->viewport()->installEventFilter( this );
lay->addWidget( myEditor );
contextMenuRequest( (QContextMenuEvent*)e );
return true;
}
- return QFrame::eventFilter( o, e );
+ return QWidget::eventFilter( o, e );
}
/*!
#include "PyConsole.h"
#include <SUIT_PopupClient.h>
-#include <QFrame>
+#include <QWidget>
#include <QMap>
class PyConsole_Interp;
class PyConsole_Editor;
-class PYCONSOLE_EXPORT PyConsole_Console : public QFrame, public SUIT_PopupClient
+class PYCONSOLE_EXPORT PyConsole_Console : public QWidget, public SUIT_PopupClient
{
Q_OBJECT