Logo Search packages:      
Sourcecode: kallery version File versions  Download package

void ImageHtmlPage::slotSelectBackPic (  )  [private, slot]

Select the picture for the Back button.

Definition at line 90 of file imagehtmlpage.cpp.

References OptionType::backPic, KalleryGlobals::imageFilter(), KalleryGlobals::options, and KalleryGlobals::ref().

{
  QString tempStr;
  tempStr = KFileDialog::getOpenFileName(KalleryGlobals::ref()->options.backPic, KalleryGlobals::ref()->imageFilter(),this,i18n("Select picture for Back button"));
  if (! tempStr.isEmpty())
  {
    KalleryGlobals::ref()->options.backPic = tempStr;
  }
  if (!QFileInfo(KalleryGlobals::ref()->options.backPic).exists())
  {
    KalleryGlobals::ref()->options.backPic = "";
  }
  BackPic->setPixmap(QPixmap(KalleryGlobals::ref()->options.backPic));
}


Generated by  Doxygen 1.6.0   Back to index