X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fwizard.h;h=de0fce1f3944df29d51aabb19fac137d6dc0c877;hb=56aee6aedeeed3efd10ada8fe3c229eddc01ef05;hp=134e4e0be63771f2c73670ffd99aee748d78d3ec;hpb=05a837d483eeb9102ffa832b4a5c6698f2482a62;p=kdenlive diff --git a/src/wizard.h b/src/wizard.h index 134e4e0b..de0fce1f 100644 --- a/src/wizard.h +++ b/src/wizard.h @@ -38,20 +38,22 @@ class WizardDelegate: public QItemDelegate { public: - WizardDelegate(QAbstractItemView* parent = 0): QItemDelegate(parent) { + explicit WizardDelegate(QAbstractItemView* parent = 0) + : QItemDelegate(parent) + { } void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const { if (index.column() == 1) { painter->save(); - QStyleOptionViewItemV4 opt(option); + QStyleOptionViewItemV4 opt(option); QStyle *style = opt.widget ? opt.widget->style() : QApplication::style(); const int textMargin = style->pixelMetric(QStyle::PM_FocusFrameHMargin) + 1; style->drawPrimitive(QStyle::PE_PanelItemViewItem, &opt, painter, opt.widget); - + QFont font = painter->font(); font.setBold(true); painter->setFont(font); - QRect r1 = option.rect; + QRect r1 = option.rect; r1.adjust(0, textMargin, 0, - textMargin); int mid = (int)((r1.height() / 2)); r1.setBottom(r1.y() + mid); @@ -75,7 +77,7 @@ class Wizard : public QWizard Q_OBJECT public: explicit Wizard(bool upgrade, QWidget * parent = 0); - void installExtraMimes(QString baseName, QStringList globs); + void installExtraMimes(const QString &baseName, const QStringList &globs); void runUpdateMimeDatabase(); void adjustSettings(); bool isOk() const; @@ -88,11 +90,13 @@ private: Ui::WizardCheck_UI m_check; QVBoxLayout *m_startLayout; bool m_systemCheckIsOk; + QLabel *m_welcomeLabel; QMap m_dvProfiles; QMap m_hdvProfiles; QMap m_otherProfiles; void slotCheckPrograms(); void checkMltComponents(); + void checkMissingCodecs(); KIcon m_okIcon; KIcon m_badIcon; @@ -106,6 +110,7 @@ private slots: void slotUpdateCaptureParameters(); void slotSaveCaptureFormat(); void slotUpdateDecklinkDevice(int captureCard); + void slotOpenManual(); }; #endif