Changed: #1206 icon location; reinit timer on visible

This commit is contained in:
aquiles 2010-12-12 23:28:03 +01:00
parent 99e60e2047
commit 4c3a646465
5 changed files with 11 additions and 2 deletions

View file

@ -78,6 +78,14 @@ namespace NLQT
}
void CObjectViewerWidget::showEvent ( QShowEvent * event )
{
if (!_mainTimer->isActive())
{
_mainTimer->start(25);
}
}
void CObjectViewerWidget::setNelContext(NLMISC::INelContext &nelContext)
{
_LibContext = new CLibraryContext(nelContext);

View file

@ -64,6 +64,7 @@ namespace NLQT
virtual ~CObjectViewerWidget();
virtual QPaintEngine* paintEngine() const { return NULL; }
virtual void showEvent ( QShowEvent * event );
void setNelContext(NLMISC::INelContext &nelContext);

View file

@ -44,7 +44,7 @@ namespace NLQT
: QMainWindow(parent), _GeorgesLogDialog(0), _ObjectViewerDialog(0),
_GeorgesDirTreeDialog(0),_emptyView(0)
{
setWindowTitle("Qt Georges Editor");
setWindowTitle("Georges Editor Qt");
setDockNestingEnabled(true);
setCentralWidget(0);
@ -95,7 +95,7 @@ namespace NLQT
restoreGeometry(settings.value("QtWindowGeometry").toByteArray());
settings.endGroup();
setWindowIcon(QIcon(":/images/khead.png"));
setWindowIcon(QIcon(":/images/georges_logo.png"));
_statusBarTimer = new QTimer(this);
connect(_statusBarTimer, SIGNAL(timeout()), this, SLOT(updateStatusBar()));