#include <qtimer.h>
#include <qstatusbar.h>
#include <qapplication.h>
+#include <qsize.h>
#include <QtxAction.h>
#include <QtxActionMenuMgr.h>
#include <QtxActionToolMgr.h>
+
+class StatusLabel : public QLabel
+{
+public:
+ StatusLabel(QWidget* parent) : QLabel (parent) {};
+
+ QSize StatusLabel::minimumSizeHint () const { return QSize (0, 0); }
+};
+
+
/*!
Default constructor
*/
if ( !myStatusLabel )
{
- myStatusLabel = new QLabel( desktop()->statusBar() );
+ myStatusLabel = new StatusLabel( desktop()->statusBar() );
desktop()->statusBar()->addWidget( myStatusLabel, 1 );
myStatusLabel->show();
}
QString prev = myStatusLabel->text();
myStatusLabel->setText( msg );
+
if ( msec != -1 )
QTimer::singleShot( msec <= 0 ? DEFAULT_MESSAGE_DELAY : msec, this, SLOT( onInfoClear() ) );