mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-03 17:14:46 +00:00
Changed: #1206 icon location; reinit timer on visible
This commit is contained in:
parent
5a8f6fa208
commit
8907ae1601
5 changed files with 11 additions and 2 deletions
|
@ -78,6 +78,14 @@ namespace NLQT
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CObjectViewerWidget::showEvent ( QShowEvent * event )
|
||||||
|
{
|
||||||
|
if (!_mainTimer->isActive())
|
||||||
|
{
|
||||||
|
_mainTimer->start(25);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void CObjectViewerWidget::setNelContext(NLMISC::INelContext &nelContext)
|
void CObjectViewerWidget::setNelContext(NLMISC::INelContext &nelContext)
|
||||||
{
|
{
|
||||||
_LibContext = new CLibraryContext(nelContext);
|
_LibContext = new CLibraryContext(nelContext);
|
||||||
|
|
|
@ -64,6 +64,7 @@ namespace NLQT
|
||||||
virtual ~CObjectViewerWidget();
|
virtual ~CObjectViewerWidget();
|
||||||
|
|
||||||
virtual QPaintEngine* paintEngine() const { return NULL; }
|
virtual QPaintEngine* paintEngine() const { return NULL; }
|
||||||
|
virtual void showEvent ( QShowEvent * event );
|
||||||
|
|
||||||
void setNelContext(NLMISC::INelContext &nelContext);
|
void setNelContext(NLMISC::INelContext &nelContext);
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 779 KiB After Width: | Height: | Size: 779 KiB |
|
@ -44,7 +44,7 @@ namespace NLQT
|
||||||
: QMainWindow(parent), _GeorgesLogDialog(0), _ObjectViewerDialog(0),
|
: QMainWindow(parent), _GeorgesLogDialog(0), _ObjectViewerDialog(0),
|
||||||
_GeorgesDirTreeDialog(0),_emptyView(0)
|
_GeorgesDirTreeDialog(0),_emptyView(0)
|
||||||
{
|
{
|
||||||
setWindowTitle("Qt Georges Editor");
|
setWindowTitle("Georges Editor Qt");
|
||||||
|
|
||||||
setDockNestingEnabled(true);
|
setDockNestingEnabled(true);
|
||||||
setCentralWidget(0);
|
setCentralWidget(0);
|
||||||
|
@ -95,7 +95,7 @@ namespace NLQT
|
||||||
restoreGeometry(settings.value("QtWindowGeometry").toByteArray());
|
restoreGeometry(settings.value("QtWindowGeometry").toByteArray());
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
|
|
||||||
setWindowIcon(QIcon(":/images/khead.png"));
|
setWindowIcon(QIcon(":/images/georges_logo.png"));
|
||||||
|
|
||||||
_statusBarTimer = new QTimer(this);
|
_statusBarTimer = new QTimer(this);
|
||||||
connect(_statusBarTimer, SIGNAL(timeout()), this, SLOT(updateStatusBar()));
|
connect(_statusBarTimer, SIGNAL(timeout()), this, SLOT(updateStatusBar()));
|
||||||
|
|
Loading…
Reference in a new issue