Page MenuHomePhabricator

Memory consumption should be shown in status bar
Closed, ResolvedPublic

Description

the old Qt3 based MainApp showed the memory consumption of the application in the status bar. The new OpenCherry/Qt4 based application should do the same.

Event Timeline

statusbar shows memory usage now,
but still needs a periodic update.

just a reminder: the pixel value information and the memory usage information should be displayed in two separate label widgets in the statusbar, not pasted into the same string. therefore they should be updatable independently from each other. A simple QTimer should to the trick for the memory consumption display.

Can be solved by porting the old QT3 GUI to QT4.

Could you please describe how you (want to) solve(d) this issue?

Every program logic remains the same, only the GUI is ported from QT3 to QT4. The old .svg image containing the 4 icons has to be split up into 4 single .xpm icons because .svg is not supported by QT4 anymore. The new QT4 widget will be added to the status bar as permanent widget in QmitkWorkbenchWindowAdvisor, so that it is always shown in the lower right corner of the status bar.

The temporarily implementation from Comment #1 will be removed because it is not necessary any more.

Nevertheless the status bar should be reworked and be integrated better into the new platform.

Qt4 supports SVG graphics. There is a QSvgWidget class dedicated for displaying SVG graphics. Nonetheless, XMP/PNGs should do the job too, as no scaling is needed.

Hi, your bug is resolved, can you please remove the needs_core_modification request (set it to - or nothing)? Otherwise it clutters the list of open requests which is not filterable by status.

This will help granting the flag for open bugs much faster ;)