31 QString fileName = QFileInfo(
m_bundle->filename()).baseName();
32 m_ui->editBundleName->setText(fileName);
35 img = img.scaled(256, 256, Qt::KeepAspectRatio, Qt::SmoothTransformation);
37 m_ui->lblPreview->setPixmap(QPixmap::fromImage(img));
43 m_ui->editWebsite->setText(cfg.
readEntry<QString>(
"BundleWebsite",
"http://"));
44 m_ui->editLicense->setText(cfg.
readEntry<QString>(
"BundleLicense",
"CC-BY-SA"));
45 m_ui->editBundleName->setText(cfg.
readEntry<QString>(
"BundleName",
"New Bundle"));
46 m_ui->editDescription->document()->setPlainText(cfg.
readEntry<QString>(
"BundleDescription",
"New Bundle"));
50 img = img.scaled(256, 256, Qt::KeepAspectRatio, Qt::SmoothTransformation);
51 m_ui->lblPreview->setPixmap(QPixmap::fromImage(img));