From 0cd6cb4be7ecc128e5c10a988d1ab072c6ffc3c3 Mon Sep 17 00:00:00 2001 From: Till Theato Date: Tue, 29 Jun 2010 14:58:06 +0000 Subject: [PATCH] Show the track type in add track dialog through icons in the track list svn path=/trunk/kdenlive/; revision=4557 --- src/trackdialog.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/trackdialog.cpp b/src/trackdialog.cpp index 7b54943f..966362eb 100644 --- a/src/trackdialog.cpp +++ b/src/trackdialog.cpp @@ -23,16 +23,20 @@ #include "kdenlivesettings.h" #include +#include TrackDialog::TrackDialog(KdenliveDoc *doc, QWidget * parent) : QDialog(parent) { //setFont(KGlobalSettings::toolBarFont()); + KIcon videoIcon("kdenlive-show-video"); + KIcon audioIcon("kdenlive-show-audio"); setupUi(this); for (int i = 0; i < doc->tracksCount(); ++i) { TrackInfo info = doc->trackInfoAt(doc->tracksCount() - i - 1); - comboTracks->addItem(info.trackName.isEmpty() ? QString::number(i) : QString::number(i) + ": " + info.trackName); + comboTracks->addItem(info.type == VIDEOTRACK ? videoIcon : audioIcon, + info.trackName.isEmpty() ? QString::number(i) : QString::number(i) + ": " + info.trackName); } } -- 2.39.2