<label>Show ratings in project tree view.</label>
<default>false</default>
</entry>
+
+ <entry name="showdatecolumn" type="Bool">
+ <label>Show dates in project tree view.</label>
+ <default>false</default>
+ </entry>
<entry name="frametimecode" type="Bool">
<label>Show timecodes as frame number instead of hh:mm:ss:ff.</label>
item->setText(2, QString::number(f.rating()));
}
#endif
+
+ // Add info to date column
+ QFileInfo fileInfo(url.path());
+ if (fileInfo.exists()) {
+ item->setText(3, fileInfo.lastModified().toString(QString("yyyy/MM/dd hh:mm:ss")));
+ }
+
// Add cut zones
QList <CutZoneInfo> cuts = clip->cutZones();
if (!cuts.isEmpty()) {
setStyleSheet(style);
- setColumnCount(3);
+ setColumnCount(4);
QStringList headers;
- headers << i18n("Clip") << i18n("Description") << i18n("Rating");
+ headers << i18n("Clip") << i18n("Description") << i18n("Rating") << i18n("Date");
setHeaderLabels(headers);
setIndentation(12);
installEventFilter(this);
if (!KdenliveSettings::showdescriptioncolumn()) hideColumn(1);
if (!KdenliveSettings::showratingcolumn()) hideColumn(2);
+ if (!KdenliveSettings::showdatecolumn()) hideColumn(3);
}
ProjectListView::~ProjectListView()
case 2:
KdenliveSettings::setShowratingcolumn(show);
break;
+ case 3:
+ KdenliveSettings::setShowdatecolumn(show);
+ break;
default:
break;
}