From: Till Theato Date: Tue, 29 Jun 2010 14:58:06 +0000 (+0000) Subject: Show the track type in add track dialog through icons in the track list X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=0cd6cb4be7ecc128e5c10a988d1ab072c6ffc3c3;p=kdenlive Show the track type in add track dialog through icons in the track list svn path=/trunk/kdenlive/; revision=4557 --- 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); } }