Some more KF5 porting, color theme management is now written using KF5 methods

parent fad75220
......@@ -8,7 +8,6 @@ install(FILES
blacklisted_effects.txt
blacklisted_transitions.txt
encodingprofiles.rc
kdenliveui.rc
kdenlive.notifyrc
metadata.properties
meta_ffmpeg.png
......@@ -19,6 +18,7 @@ install(FILES
timeline_nothumbs.png
timeline_vthumbs.png
DESTINATION ${DATA_INSTALL_DIR}/kdenlive)
install(FILES kdenliveui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/kdenlive)
install(FILES profiles.xml DESTINATION ${DATA_INSTALL_DIR}/kdenlive/export)
install(FILES
kdenliveeffectscategory.rc
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<gui name="kdenlive" version="76">
<gui name="kdenlive" version="78">
<ToolBar name="extraToolBar" >
<text>Extra Toolbar</text>
<Action name="project_render" />
......@@ -182,9 +182,8 @@
<Action name="get_new_mlt_profiles" />
<Action name="get_new_titles" />
<Action name="run_wizard" />
<Menu name="themes_menu" ><text>Themes</text>
<Action name="themes_menu" />
</Menu>
</Menu>
</MenuBar>
</gui>
......@@ -22,7 +22,7 @@
#include "doc/kthumb.h"
#include <QDebug>
#include <KGlobalSettings>
#include <QFontDatabase>
#include <KFileItem>
#include <KIO/NetAccess>
......@@ -36,7 +36,7 @@
ManageCapturesDialog::ManageCapturesDialog(const QList<QUrl> &files, QWidget * parent)
: QDialog(parent)
{
setFont(KGlobalSettings::toolBarFont());
setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
m_view.setupUi(this);
m_importButton = m_view.buttonBox->button(QDialogButtonBox::Ok);
m_importButton->setText(i18n("import"));
......
......@@ -33,6 +33,7 @@
#include <KIO/NetAccess>
#include <kdeversion.h>
#include <KMessageBox>
#include <KLineEdit>
#include <QDir>
#include <QTimer>
......
......@@ -27,13 +27,13 @@
#include "kdenlivesettings.h"
#include <QDebug>
#include <KGlobalSettings>
#include <KIO/NetAccess>
#include <KFileDialog>
#include <KApplication>
#include <KUrlRequesterDialog>
#include <KMessageBox>
#include <QFontDatabase>
#include <QTreeWidgetItem>
#include <QFile>
#include <QCryptographicHash>
......@@ -185,7 +185,7 @@ bool DocumentChecker::hasErrorInClips()
return false;
m_dialog = new QDialog();
m_dialog->setFont(KGlobalSettings::toolBarFont());
m_dialog->setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
m_ui.setupUi(m_dialog);
foreach(const QString &l, missingLumas) {
......
......@@ -34,17 +34,10 @@ EffectsListView::EffectsListView(QWidget *parent) :
QWidget(parent)
{
setupUi(this);
QString styleSheet = "QTreeView::branch:has-siblings:!adjoins-item{border-image:none;border:0px} \
QTreeView::branch:has-siblings:adjoins-item {border-image: none;border:0px} \
QTreeView::branch:!has-children:!has-siblings:adjoins-item {border-image: none;border:0px} \
QTreeView::branch:has-children:!has-siblings:closed,QTreeView::branch:closed:has-children:has-siblings { \
border-image: none;image: url(:/images/stylesheet-branch-closed.png);} \
QTreeView::branch:open:has-children:!has-siblings,QTreeView::branch:open:has-children:has-siblings { \
border-image: none;image: url(:/images/stylesheet-branch-open.png);}";
QMenu *contextMenu = new QMenu(this);
m_effectsList = new EffectsListWidget(contextMenu);
m_effectsList->setStyleSheet(styleSheet);
m_effectsList->setStyleSheet(customStyleSheet());
QVBoxLayout *lyr = new QVBoxLayout(effectlistframe);
lyr->addWidget(m_effectsList);
lyr->setContentsMargins(0, 0, 0, 0);
......@@ -77,6 +70,18 @@ EffectsListView::EffectsListView(QWidget *parent) :
//m_effectsList->setCurrentRow(0);
}
const QString EffectsListView::customStyleSheet() const
{
return QString("QTreeView::branch:has-siblings:!adjoins-item{border-image:none;border:0px} \
QTreeView::branch:has-siblings:adjoins-item {border-image: none;border:0px} \
QTreeView::branch:!has-children:!has-siblings:adjoins-item {border-image: none;border:0px} \
QTreeView::branch:has-children:!has-siblings:closed,QTreeView::branch:closed:has-children:has-siblings { \
border-image: none;image: url(:/images/stylesheet-branch-closed.png);} \
QTreeView::branch:open:has-children:!has-siblings,QTreeView::branch:open:has-children:has-siblings { \
border-image: none;image: url(:/images/stylesheet-branch-open.png);}");
}
void EffectsListView::filterList(int pos)
{
for (int i = 0; i < m_effectsList->topLevelItemCount(); ++i) {
......@@ -211,7 +216,10 @@ void EffectsListView::slotAutoExpand(const QString &text)
void EffectsListView::updatePalette()
{
m_effectsList->setStyleSheet(m_effectsList->styleSheet());
// We need to reset current stylesheet if we want to change the palette!
m_effectsList->setStyleSheet("");
m_effectsList->updatePalette();
m_effectsList->setStyleSheet(customStyleSheet());
}
#include "effectslistview.moc"
......@@ -55,6 +55,7 @@ public:
private:
EffectsListWidget *m_effectsList;
const QString customStyleSheet() const;
private slots:
/** @brief Applies the type filter to the effect list.
......
......@@ -54,9 +54,7 @@ EffectsListWidget::EffectsListWidget(QMenu *contextMenu, QWidget *parent) :
setIndentation(10);
//setSelectionMode(QAbstractItemView::ExtendedSelection);
setDragDropMode(QAbstractItemView::DragOnly);
QPalette p = palette();
p.setBrush(QPalette::Base, p.window());
setPalette(p);
updatePalette();
connect(this, SIGNAL(activated(QModelIndex)), this, SLOT(slotExpandItem(QModelIndex)));
}
......@@ -64,6 +62,13 @@ EffectsListWidget::~EffectsListWidget()
{
}
void EffectsListWidget::updatePalette()
{
QPalette p = qApp->palette();
p.setBrush(QPalette::Base, p.window());
setPalette(p);
}
void EffectsListWidget::slotExpandItem(const QModelIndex & index)
{
setExpanded(index, !isExpanded(index));
......
......@@ -40,6 +40,7 @@ public:
QString currentInfo() const;
const QDomElement itemEffect(QTreeWidgetItem *item) const;
void initList(QMenu *effectsMenu, KActionCategory *effectActions);
void updatePalette();
protected:
virtual void dragMoveEvent(QDragMoveEvent *event);
......
......@@ -31,10 +31,11 @@
#include <QProgressBar>
#include <QWheelEvent>
#include <QMimeData>
#include <QFontDatabase>
#include <QDebug>
#include <KComboBox>
#include <KGlobalSettings>
#include <KLocalizedString>
#include <KMessageBox>
#include <KFileDialog>
......@@ -55,7 +56,7 @@ CollapsibleEffect::CollapsibleEffect(const QDomElement &effect, const QDomElemen
}
filterWheelEvent = true;
m_info.fromString(effect.attribute("kdenlive_info"));
setFont(KGlobalSettings::smallestReadableFont());
setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
buttonUp->setIcon(QIcon::fromTheme("kdenlive-up"));
buttonUp->setToolTip(i18n("Move effect up"));
if (!lastEffect) {
......
......@@ -30,7 +30,7 @@
#include <QMimeData>
#include <QDebug>
#include <KGlobalSettings>
#include <QFontDatabase>
#include <KLocalizedString>
#include <KMessageBox>
#include <KColorScheme>
......@@ -56,7 +56,7 @@ CollapsibleGroup::CollapsibleGroup(int ix, bool firstGroup, bool lastGroup, cons
{
m_info.groupIndex = ix;
m_subWidgets = QList <CollapsibleEffect *> ();
setFont(KGlobalSettings::smallestReadableFont());
setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
frame->setObjectName("framegroup");
decoframe->setObjectName("decoframegroup");
QHBoxLayout *l = static_cast <QHBoxLayout *>(frame->layout());
......
......@@ -35,7 +35,7 @@
#include <QDebug>
#include <QIcon>
#include <KLocalizedString>
#include <KGlobalSettings>
#include <QFontDatabase>
DragValue::DragValue(const QString &label, double defaultValue, int decimals, double min, double max, int id, const QString &suffix, bool showSlider, QWidget* parent) :
......@@ -365,7 +365,7 @@ CustomLabel::CustomLabel(const QString &label, bool showSlider, int range, QWidg
m_step(10.0)
//m_precision(pow(10, precision)),
{
setFont(KGlobalSettings::toolBarFont());
setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
setFormat(' ' + label);
setFocusPolicy(Qt::StrongFocus);
setCursor(Qt::PointingHandCursor);
......
......@@ -49,7 +49,7 @@ EffectStackEdit::EffectStackEdit(Monitor *monitor, QWidget *parent) :
setFrameStyle(QFrame::NoFrame);
setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::MinimumExpanding));
setStyleSheet(EffectStackView2::getStyleSheet());
updatePalette();
setWidget(m_baseWidget);
/*m_vbox = new QVBoxLayout(m_baseWidget);
m_vbox->setContentsMargins(0, 0, 0, 0);
......@@ -62,6 +62,13 @@ EffectStackEdit::~EffectStackEdit()
delete m_baseWidget;
}
void EffectStackEdit::updatePalette()
{
setStyleSheet("");
setPalette(qApp->palette());
setStyleSheet(EffectStackView2::getStyleSheet());
}
Monitor *EffectStackEdit::monitor()
{
return m_metaInfo.monitor;
......
......@@ -55,6 +55,7 @@ public:
bool needsMonitorEffectScene() const;
/** @brief Set keyframes for this transition. */
void setKeyframes(const QString &data, int maximum);
void updatePalette();
private:
EffectMetaInfo m_metaInfo;
......
......@@ -32,7 +32,7 @@
#include <QDebug>
#include <KLocalizedString>
#include <KColorScheme>
#include <KGlobalSettings>
#include <QFontDatabase>
#include <KColorUtils>
#include <QScrollBar>
......@@ -54,7 +54,7 @@ EffectStackView2::EffectStackView2(Monitor *monitor, QWidget *parent) :
setAcceptDrops(true);
m_ui.setupUi(this);
setFont(KGlobalSettings::smallestReadableFont());
setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
m_ui.checkAll->setToolTip(i18n("Enable/Disable all effects"));
m_ui.buttonShowComments->setIcon(QIcon::fromTheme("help-about"));
m_ui.buttonShowComments->setToolTip(i18n("Show additional information for the parameters"));
......
......@@ -22,7 +22,7 @@
#include "kdenlivesettings.h"
#include <QDebug>
#include <KGlobalSettings>
#include <QFontDatabase>
#include <QHeaderView>
......@@ -37,7 +37,7 @@ KeyframeEdit::KeyframeEdit(const QDomElement &e, int minFrame, int maxFrame, con
// special case: keyframe for tracks, do not allow keyframes
widgetTable->setHidden(true);
}
keyframe_list->setFont(KGlobalSettings::generalFont());
keyframe_list->setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
buttonSeek->setChecked(KdenliveSettings::keyframeseek());
connect(buttonSeek, SIGNAL(toggled(bool)), this, SLOT(slotSetSeeking(bool)));
......
......@@ -24,7 +24,7 @@
#include "definitions.h"
#include <QDebug>
#include <KGlobalSettings>
#include <QFontDatabase>
#include <KColorScheme>
#include <QMouseEvent>
......@@ -49,7 +49,7 @@ KeyframeHelper::KeyframeHelper(QWidget *parent) :
, m_hoverKeyframe(-1)
, m_seekPosition(SEEK_INACTIVE)
{
setFont(KGlobalSettings::toolBarFont());
setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
setMouseTracking(true);
QPalette p = palette();
KColorScheme scheme(p.currentColorGroup(), KColorScheme::Window, KSharedConfig::openConfig(KdenliveSettings::colortheme()));
......
This diff is collapsed.
......@@ -36,6 +36,7 @@
#include <KActionCategory>
#include <KSelectAction>
#include <KSharedConfigPtr>
#include <KColorSchemeManager>
#include "kdenlivecore_export.h"
#include "effectslist/effectslist.h"
......@@ -145,6 +146,10 @@ private:
/** @brief Sets up all the actions and attaches them to the collection. */
void setupActions();
KColorSchemeManager *m_colorschemes;
KActionMenu *m_themesMenu;
QDockWidget *m_projectListDock;
......@@ -409,7 +414,7 @@ private slots:
void slotUpdateTrackInfo();
/** @brief Changes the color scheme. */
void slotChangePalette(QAction *action, const QString &themename = QString());
void slotChangePalette(QAction *action);
void slotSwitchMonitors();
void slotCheckRenderStatus();
void slotInsertZoneToTree();
......@@ -437,8 +442,7 @@ private slots:
void slotElapsedTime();
/** @brief Open the online services search dialog. */
void slotDownloadResources();
void slotChangePalette();
/** @brief Save current timeline clip as mlt playlist. */
void slotSaveTimelineClip();
/** @brief Process keyframe data sent from a clip to effect / transition stack. */
......
......@@ -80,7 +80,7 @@ void MltConnection::locateMeltAndProfilesPath(const QString& mltPath)
QPointer<KUrlRequesterDialog> getUrl = new KUrlRequesterDialog(KdenliveSettings::mltpath(),
i18n("Cannot find your MLT profiles, please give the path"),
pCore->window());
getUrl->fileDialog()->setFileMode(QFileDialog::DirectoryOnly);
getUrl->urlRequester()->setMode(KFile::Directory);
if (getUrl->exec() == QDialog::Rejected) {
delete getUrl;
::exit(0);
......
......@@ -304,6 +304,7 @@ void SmallRuler::updatePalette()
KSharedConfigPtr config = KSharedConfig::openConfig(KdenliveSettings::colortheme());
m_zoneColor = KStatefulBrush(KColorScheme::View, KColorScheme::FocusColor, config).brush(this).color();
m_zoneColor.setAlpha(180);
m_cursorColor = palette().text();
updatePixmap();
}
......
......@@ -31,7 +31,7 @@
#include <KFileDialog>
#include <kdeversion.h>
#include <KRun>
#include <KGlobalSettings>
#include <QFontDatabase>
#include <KGlobal>
#ifdef USE_NEPOMUK
......@@ -76,7 +76,7 @@ ClipProperties::ClipProperties(DocClipBase *clip, const Timecode &tc, double fps
, m_proxyContainer(NULL)
{
setAttribute(Qt::WA_DeleteOnClose, true);
setFont(KGlobalSettings::toolBarFont());
setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
m_view.setupUi(this);
// force transparency is only for group properties, so hide it
......@@ -583,7 +583,7 @@ ClipProperties::ClipProperties(const QList <DocClipBase *> &cliplist, const Time
m_clipNeedsRefresh(false),
m_clipNeedsReLoad(false)
{
setFont(KGlobalSettings::toolBarFont());
setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
m_view.setupUi(this);
QString title = windowTitle();
title.append(' ' + i18np("(%1 clip)", "(%1 clips)", cliplist.count()));
......
......@@ -25,7 +25,7 @@
#include <QDebug>
#include <mlt++/Mlt.h>
#include "kdenlivesettings.h"
#include <KGlobalSettings>
#include <QFontDatabase>
#include <KMessageBox>
#include <KColorScheme>
#include <KFileDialog>
......@@ -36,7 +36,7 @@ ClipStabilize::ClipStabilize(const QStringList &urls, const QString &filterName,
m_urls(urls),
vbox(NULL)
{
setFont(KGlobalSettings::toolBarFont());
setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
setupUi(this);
setWindowTitle(i18n("Stabilize Clip"));
auto_add->setText(i18np("Add clip to project", "Add clips to project", urls.count()));
......
......@@ -22,7 +22,7 @@
#include "kdenlivesettings.h"
#include <QDebug>
#include <KGlobalSettings>
#include <QFontDatabase>
#include <KMessageBox>
#include <KFileDialog>
......@@ -30,7 +30,7 @@
ClipTranscode::ClipTranscode(const QList <QUrl> &urls, const QString &params, const QStringList &postParams, const QString &description, bool automaticMode, QWidget * parent) :
QDialog(parent), m_urls(urls), m_duration(0), m_automaticMode(automaticMode), m_postParams(postParams)
{
setFont(KGlobalSettings::toolBarFont());
setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
setupUi(this);
setAttribute(Qt::WA_DeleteOnClose);
#if KDE_IS_VERSION(4,7,0)
......
......@@ -23,8 +23,8 @@
#include <QDebug>
#include <KFileItem>
#include <KGlobal>
#include <KGlobalSettings>
#include <QFontDatabase>
#include <kdeversion.h>
#include <QDir>
......@@ -37,7 +37,7 @@ SlideshowClip::SlideshowClip(const Timecode &tc, QWidget * parent) :
m_timecode(tc),
m_thumbJob(NULL)
{
setFont(KGlobalSettings::toolBarFont());
setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
setWindowTitle(i18n("Add Slideshow Clip"));
m_view.setupUi(this);
m_view.clip_name->setText(i18n("Slideshow Clip"));
......
......@@ -267,4 +267,10 @@ void TransitionSettings::setKeyframes(const QString &data, int maximum)
m_effectEdit->setKeyframes(data, maximum);
}
void TransitionSettings::updatePalette()
{
// We need to reset current stylesheet if we want to change the palette!
m_effectEdit->updatePalette();
}
#include "transitionsettings.moc"
......@@ -37,6 +37,7 @@ public:
void updateProjectFormat();
void updateTimecodeFormat();
void setKeyframes(const QString &data, int maximum);
void updatePalette();
private:
EffectStackEdit *m_effectEdit;
......
......@@ -22,7 +22,7 @@
#include <QStylePainter>
#include <QMouseEvent>
#include <KGlobalSettings>
#include <QFontDatabase>
#include <KColorScheme>
......@@ -39,7 +39,7 @@ SimpleTimelineWidget::SimpleTimelineWidget(QWidget* parent) :
setMouseTracking(true);
setMinimumSize(QSize(150, 20));
setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum));
setFont(KGlobalSettings::toolBarFont());
setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
QPalette p = palette();
KColorScheme scheme(p.currentColorGroup(), KColorScheme::Window, KSharedConfig::openConfig(KdenliveSettings::colortheme()));
m_colSelected = scheme.decoration(KColorScheme::HoverColor).color();
......
......@@ -28,7 +28,7 @@
#include "kdenlivesettings.h"
#include <QDebug>
#include <KGlobalSettings>
#include <QFontDatabase>
#include <KMessageBox>
#include <kdeversion.h>
......@@ -169,7 +169,7 @@ StopmotionWidget::StopmotionWidget(MonitorManager *manager, const QUrl &projectF
addActions(actions);
setupUi(this);
setWindowTitle(i18n("Stop Motion Capture"));
setFont(KGlobalSettings::toolBarFont());
setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
live_button->setIcon(QIcon::fromTheme("camera-photo"));
......
......@@ -22,7 +22,7 @@
#include "clipitem.h"
#include <QDebug>
#include <KGlobalSettings>
#include <QFontDatabase>
#include <QWheelEvent>
......@@ -32,7 +32,7 @@ ClipDurationDialog::ClipDurationDialog(AbstractClipItem *clip, const Timecode &t
m_min(min),
m_max(max)
{
setFont(KGlobalSettings::toolBarFont());
setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
setupUi(this);
m_pos = new TimecodeDisplay(tc);
......
......@@ -24,7 +24,7 @@
#include <QDebug>
#include <QIcon>
#include <KLocale>
#include <KGlobalSettings>
#include <QFontDatabase>
#include <KColorScheme>
#include <QCursor>
......@@ -66,7 +66,7 @@ CustomRuler::CustomRuler(const Timecode &tc, CustomTrackView *parent) :
m_mouseMove(NO_MOVE),
m_cursorColor(palette().text())
{
setFont(KGlobalSettings::toolBarFont());
setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
QFontMetricsF fontMetrics(font());
// Define size variables
LABEL_SIZE = fontMetrics.ascent();
......@@ -100,6 +100,7 @@ CustomRuler::CustomRuler(const Timecode &tc, CustomTrackView *parent) :
void CustomRuler::updatePalette()
{
m_cursorColor = palette().text();
m_zoneColor = KStatefulBrush(KColorScheme::View, KColorScheme::FocusColor, KSharedConfig::openConfig(KdenliveSettings::colortheme())).brush(this).color();
m_zoneColor.setAlpha(180);
}
......
......@@ -25,7 +25,7 @@
#include <QWheelEvent>
#include <QDebug>
#include <KGlobalSettings>
#include <QFontDatabase>
MarkerDialog::MarkerDialog(DocClipBase *clip, const CommentedTime &t, const Timecode &tc, const QString &caption, QWidget * parent)
: QDialog(parent)
......@@ -34,7 +34,7 @@ MarkerDialog::MarkerDialog(DocClipBase *clip, const CommentedTime &t, const Time
, m_clip(clip)
, m_dar(4.0 / 3.0)
{
setFont(KGlobalSettings::toolBarFont());
setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
setupUi(this);
setWindowTitle(caption);
......
......@@ -25,13 +25,13 @@
#include <QWheelEvent>
#include <QDebug>
#include <KGlobalSettings>
#include <QFontDatabase>
SpacerDialog::SpacerDialog(const GenTime &duration, const Timecode &tc, int track, const QList<TrackInfo> &tracks, QWidget * parent) :
QDialog(parent),
m_in(tc)
{
setFont(KGlobalSettings::toolBarFont());
setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
setupUi(this);
inputLayout->addWidget(&m_in);
m_in.setValue(duration);
......
......@@ -30,7 +30,7 @@
TrackDialog::TrackDialog(KdenliveDoc *doc, QWidget * parent) :
QDialog(parent)
{
//setFont(KGlobalSettings::toolBarFont());
//setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
QIcon videoIcon = QIcon::fromTheme("kdenlive-show-video");
QIcon audioIcon = QIcon::fromTheme("kdenlive-show-audio");
setupUi(this);
......
......@@ -570,7 +570,9 @@ void TrackView::slotRebuildTrackHeaders()
void TrackView::updatePalette()
{
QPalette p = palette();
headers_container->setStyleSheet("");
setPalette(qApp->palette());
QPalette p = qApp->palette();
KColorScheme scheme(p.currentColorGroup(), KColorScheme::View, KSharedConfig::openConfig(KdenliveSettings::colortheme()));
QColor norm = scheme.shade(scheme.background(KColorScheme::ActiveBackground).color(), KColorScheme::MidShade);
p.setColor(QPalette::Button, norm);
......
......@@ -23,7 +23,7 @@
#include <cmath>
#include <QDebug>
#include <KGlobalSettings>
#include <QFontDatabase>
#include <KFileDialog>
#include <KGlobal>
......@@ -78,7 +78,7 @@ TitleWidget::TitleWidget(const QUrl &url, const Timecode &tc, const QString &pro
{
setupUi(this);
setMinimumSize(200, 200);
setFont(KGlobalSettings::toolBarFont());
setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
frame_properties->setEnabled(false);
frame_properties->setFixedHeight(frame_toolbar->height());