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

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

Select the picture for the Previous button.

Definition at line 74 of file imagehtmlpage.cpp.

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

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


Generated by  Doxygen 1.6.0   Back to index