Logo Search packages:      
Sourcecode: kcpuload version File versions  Download package

StatPopup::StatPopup ( bool  useSupportSplit,
QWidget *  parent = 0,
const char *  name = 0 

Constructors and destructors.

This constructor will set the config variable but will not read any configuration information. See the general class notes also for a list of other routines this constructor will not call.

Definition at line 38 of file statpopup.cpp.

References closing, coll, config, dock, fullReading, isDragged, relX, relY, resizeToText(), takeReading(), and timer.

        QWidget(parent, name, Qt::WStyle_Customize | Qt::WStyle_NoBorder |
        Qt::WStyle_StaysOnTop | Qt::WDestructiveClose | Qt::WType_TopLevel),
        supportSplit(useSupportSplit) {
    // Window management.
    KWin::setState(winId(), NET::SkipTaskbar | NET::SkipPager);

    // TODO: Get all-desktops working, even after a hide/reshow.
    //KWin::setOnAllDesktops(winId(), true);

    // Basic variable initialisation.
    relX = relY = 0;
    dock[0] = dock[1] = 0;
    isDragged = closing = false;

    // Initialise the text contents of this pop-up.
    fullReading = i18n("Inactive.");

    // Prepare for actions and the config file, but don't actually add
    // any actions or read the configuration.
    config = KGlobal::config();
    coll = new KActionCollection(this);

    // Set up a timer for our periodic updates.
    timer = new QTimer(this);
    connect(timer, SIGNAL(timeout()), this, SLOT(takeReading()));

Generated by  Doxygen 1.6.0   Back to index