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

void StatPopup::resizeToText (  )  [private]

Resize this pop-up according to its text contents (i.e., the variable fullReading). A little extra room will be added to accomodate potential minor variations in the text.

Definition at line 499 of file statpopup.cpp.

References fullReading, and resizeRequested.

Referenced by StatPopup(), and takeReading().

    resizeRequested = false;

    QSize size = fontMetrics().size(0, fullReading);
    resize(size.width() + 2 * TEXT_EXPANSION_HORIZONTAL,
        size.height() + 2 * TEXT_EXPANSION_VERTICAL);

Generated by  Doxygen 1.6.0   Back to index