[Kstars-devel] branches/kstars/summer/kstars/kstars/tools
Prakash Mohan
prak902000 at gmail.com
Tue Jun 16 15:19:43 CEST 2009
SVN commit 982621 by prakash:
Hiding the "Show in ImageViewer" button instead of disabling it, this looks much cleaner.
CCMAIL: kstars-devel at kde.org
M +9 -4 observinglist.cpp
--- branches/kstars/summer/kstars/kstars/tools/observinglist.cpp #982620:982621
@@ -199,7 +199,7 @@
ui->TimeEdit->setEnabled( false );
ui->GetImage->setEnabled( false );
ui->saveImages->setEnabled( false );
- ui->ExpandImage->setEnabled( false );
+ ui->ExpandImage->hide();
slotLoadWishList(); //Load the wishlist from disk if present
//Hide the MiniButton until I can figure out how to resize the Dialog!
@@ -373,7 +373,7 @@
}
void ObservingList::slotRemoveSelectedObjects() {
- ui->ExpandImage->setEnabled( false );
+ ui->ExpandImage->hide();
if( sessionView )
{
//Find each object by name in the session list, and remove it
@@ -434,8 +434,9 @@
void ObservingList::slotNewSelection() {
bool singleSelection = false, found = false;
+ ui->ExpandImage->hide();
ui->ImagePreview->clearPreview();
- ui->ExpandImage->setEnabled( false );
+ ui->ImagePreview->hide();
QModelIndexList selectedItems;
QString newName;
SkyObject *o;
@@ -518,7 +519,8 @@
}
if( QFile::exists( KStandardDirs::locateLocal( "appdata", CurrentImage ) ) ) {//If the image is present, show it!
ui->ImagePreview->showPreview( KUrl( KStandardDirs::locateLocal( "appdata", CurrentImage ) ));
- ui->ExpandImage->setEnabled( true );
+ ui->ImagePreview->show();
+ ui->ExpandImage->show();
}
} else {
@@ -1162,6 +1164,7 @@
dss = _dss;
ui->GetImage->setEnabled( false );
ui->ImagePreview->clearPreview();
+ ui->ExpandImage->hide();
QFile::remove( KStandardDirs::locateLocal( "appdata", CurrentImage ) );
KUrl url;
if( dss ) {
@@ -1179,6 +1182,8 @@
if( QFile( KStandardDirs::locateLocal( "appdata", CurrentImage ) ).size() > 9000 ) {//The default image is around 8689 bytes
ui->GetImage->setEnabled( true );
ui->ImagePreview->showPreview( KUrl( KStandardDirs::locateLocal( "appdata", CurrentImage ) ) );
+ ui->ImagePreview->show();
+ ui->ExpandImage->show();
ImageList.append( CurrentImage );
}
else if( ! dss )
More information about the Kstars-devel
mailing list