[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/kdepim/enterprise/kdepim/certmanager/lib/ui
From: Marc Mutz <mutz () kde ! org>
Date: 2009-03-07 17:56:56
Message-ID: 1236448616.041418.15884.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 936466 by mutz:
Hide unneeded buttons when we show the error page (kolab/issue1950).
M +6 -0 cryptoconfigdialog.cpp
M +4 -0 cryptoconfigmodule.cpp
M +2 -0 cryptoconfigmodule.h
--- branches/kdepim/enterprise/kdepim/certmanager/lib/ui/cryptoconfigdialog.cpp #936465:936466
@@ -46,6 +46,12 @@
setMainWidget( mMainWidget );
connect( mMainWidget, SIGNAL( changed() ), SLOT( slotChanged() ) );
enableButton( Apply, false );
+ if ( mMainWidget->hasError() ) {
+ showButton( Default, false );
+ showButton( User1, false );
+ showButton( Apply, false );
+ showButton( Ok, false );
+ }
// Automatically assign accelerators
KAcceleratorManager::manage( this );
--- branches/kdepim/enterprise/kdepim/certmanager/lib/ui/cryptoconfigmodule.cpp #936465:936466
@@ -141,6 +141,10 @@
}
}
+bool Kleo::CryptoConfigModule::hasError() const {
+ return mComponentGUIs.empty();
+}
+
void Kleo::CryptoConfigModule::save()
{
bool changed = false;
--- branches/kdepim/enterprise/kdepim/certmanager/lib/ui/cryptoconfigmodule.h #936465:936466
@@ -50,6 +50,8 @@
public:
CryptoConfigModule( Kleo::CryptoConfig* config, QWidget * parent=0, const char * name=0 );
+ bool hasError() const;
+
void save();
void reset(); // i.e. reload current settings, discarding user input
void defaults();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic