Summary: | progress popup state should be remembered | ||
---|---|---|---|
Product: | [Unmaintained] kmail | Reporter: | Leo Savernik <l.savernik> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Leo Savernik
2004-09-01 15:41:45 UTC
I just want to annotate that if bug 87599 is fixed, this bug ceases to have any importance to me and can be closed. CVS commit by tilladam: Remember the state of the progress dialog in between invocations. If it is expanded it will auto-expand when new items appear until explicitely collapsed. BUGS: 88591 M +11 -5 progressdialog.cpp 1.34 M +1 -0 progressdialog.h 1.20 --- kdepim/libkdepim/progressdialog.cpp #1.33:1.34 @@ -230,5 +230,5 @@ void TransactionItem::addSubTransaction( ProgressDialog::ProgressDialog( QWidget* alignWidget, QWidget* parent, const char* name ) - : OverlayWidget( alignWidget, parent, name ) + : OverlayWidget( alignWidget, parent, name ), mWasLastShown( false ) { setFrameStyle( QFrame::Panel | QFrame::Sunken ); // QFrame @@ -297,7 +297,11 @@ void ProgressDialog::slotTransactionAdde } } else { - TransactionItem *ti = mScrollView->addTransactionItem( item, mTransactionsToListviewItems.empty() ); + const bool first = mTransactionsToListviewItems.empty(); + TransactionItem *ti = mScrollView->addTransactionItem( item, first ); if ( ti ) mTransactionsToListviewItems.replace( item, ti ); + if ( first && mWasLastShown ) + QTimer::singleShot( 1000, this, SLOT( slotShow() ) ); + } } @@ -375,4 +379,5 @@ void ProgressDialog::slotHide() void ProgressDialog::slotClose() { + mWasLastShown = false; setVisible( false ); } @@ -394,4 +399,5 @@ void ProgressDialog::slotToggleVisibilit * are no items to be shown anymore. Guard against that. */ + mWasLastShown = !isShown(); if ( isShown() || !mTransactionsToListviewItems.isEmpty() ) setVisible( !isShown() ); --- kdepim/libkdepim/progressdialog.h #1.19:1.20 @@ -147,4 +147,5 @@ protected: TransactionItem* mPreviousItem; QMap< const ProgressItem*, TransactionItem* > mTransactionsToListviewItems; + bool mWasLastShown; }; |