svn path=/trunk/kdenlive/; revision=5938
kde4_add_kcfg_files(kdenlive_SRCS kdenlivesettings.kcfgc)
qt4_add_dbus_adaptor(kdenlive_SRCS org.kdenlive.MainWindow.xml mainwindow.h MainWindow)
kde4_add_kcfg_files(kdenlive_SRCS kdenlivesettings.kcfgc)
qt4_add_dbus_adaptor(kdenlive_SRCS org.kdenlive.MainWindow.xml mainwindow.h MainWindow)
+qt4_add_resources(kdenlive_SRCS widgets/resources.qrc)
kde4_add_executable(kdenlive ${kdenlive_SRCS} ${kdenlive_UI})
if(${KDE_VERSION} VERSION_LESS 4.3.80)
kde4_add_executable(kdenlive ${kdenlive_SRCS} ${kdenlive_UI})
if(${KDE_VERSION} VERSION_LESS 4.3.80)
+ QString style = "QTreeView::branch:has-siblings:!adjoins-item{border-image: none 0;} \
+ QTreeView::branch:has-siblings:adjoins-item {border-image: none 0;} \
+ QTreeView::branch:!has-children:!has-siblings:adjoins-item {border-image: none 0;} \
+ 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);
QMenu *contextMenu = new QMenu(this);
m_effectsList = new EffectsListWidget(contextMenu);
+ m_effectsList->setStyleSheet(style);
QVBoxLayout *lyr = new QVBoxLayout(effectlistframe);
lyr->addWidget(m_effectsList);
lyr->setContentsMargins(0, 0, 0, 0);
QVBoxLayout *lyr = new QVBoxLayout(effectlistframe);
lyr->addWidget(m_effectsList);
lyr->setContentsMargins(0, 0, 0, 0);
setFrameShape(QFrame::NoFrame);
setRootIsDecorated(true);
setFrameShape(QFrame::NoFrame);
setRootIsDecorated(true);
+ QString style = "QTreeView::branch:has-siblings:!adjoins-item{border-image: none 0;} \
+ QTreeView::branch:has-siblings:adjoins-item {border-image: none 0;} \
+ QTreeView::branch:!has-children:!has-siblings:adjoins-item {border-image: none 0;} \
+ 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);}";
+
+ setStyleSheet(style);
+
setColumnCount(3);
QStringList headers;
headers << i18n("Clip") << i18n("Description") << i18n("Rating");
setColumnCount(3);
QStringList headers;
headers << i18n("Clip") << i18n("Description") << i18n("Rating");
</widget>
<customwidgets>
<customwidget>
</widget>
<customwidgets>
<customwidget>
- <class>KTreeWidgetSearchLine</class>
- <extends>KLineEdit</extends>
- <header>ktreewidgetsearchline.h</header>
+ <class>KComboBox</class>
+ <extends>QComboBox</extends>
+ <header>kcombobox.h</header>
</customwidget>
<customwidget>
<class>KLineEdit</class>
</customwidget>
<customwidget>
<class>KLineEdit</class>
<header>klineedit.h</header>
</customwidget>
<customwidget>
<header>klineedit.h</header>
</customwidget>
<customwidget>
- <class>KComboBox</class>
- <extends>QComboBox</extends>
- <header>kcombobox.h</header>
+ <class>KTreeWidgetSearchLine</class>
+ <extends>KLineEdit</extends>
+ <header>ktreewidgetsearchline.h</header>
</customwidget>
</customwidgets>
</customwidget>
</customwidgets>
+ <resources>
+ <include location="resources.qrc"/>
+ </resources>
--- /dev/null
+<RCC>
+ <qresource prefix="images">
+ <file>stylesheet-branch-closed.png</file>
+ <file>stylesheet-branch-open.png</file>
+ </qresource>
+</RCC>