MCPcopy Create free account
hub / github.com/KDE/kdevelop / slotToggleVisibility

Method slotToggleVisibility

kdevplatform/shell/progresswidget/progressdialog.cpp:376–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376void ProgressDialog::slotToggleVisibility()
377{
378 /* Since we are only hiding with a timeout, there is a short period of
379 * time where the last item is still visible, but clicking on it in
380 * the statusbarwidget should not display the dialog, because there
381 * are no items to be shown anymore. Guard against that.
382 */
383 mWasLastShown = isHidden();
384 if ( !isHidden() || !mTransactionsToListviewItems.isEmpty() ) {
385 setVisible( isHidden() );
386 }
387}
388
389}
390

Callers 1

eventFilterMethod · 0.80

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected