Show full clip path in clip properties widget title.

Related to #748
parent 6539a558
Pipeline #26000 passed with stage
in 23 minutes and 3 seconds
......@@ -56,6 +56,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <QFontDatabase>
#include <QHBoxLayout>
#include <QLabel>
#include <KSqueezedTextLabel>
#include <QMenu>
#include <QMimeData>
#include <QMimeDatabase>
......@@ -178,7 +179,9 @@ ClipPropertiesController::ClipPropertiesController(ClipController *controller, Q
setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Preferred);
auto *lay = new QVBoxLayout;
lay->setContentsMargins(0, 0, 0, 0);
m_clipLabel = new QLabel(controller->clipName());
m_clipLabel = new KSqueezedTextLabel(this);
m_clipLabel->setTextElideMode(Qt::ElideLeft);
m_clipLabel->setText(controller->clipUrl());
lay->addWidget(m_clipLabel);
m_tabWidget = new QTabWidget(this);
lay->addWidget(m_tabWidget);
......
......@@ -33,7 +33,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
class ClipController;
class QMimeData;
class QTextEdit;
class QLabel;
class KSqueezedTextLabel;
class QComboBox;
class QListWidget;
class QGroupBox;
......@@ -101,7 +101,7 @@ private slots:
private:
ClipController *m_controller;
QTabWidget *m_tabWidget;
QLabel *m_clipLabel;
KSqueezedTextLabel *m_clipLabel;
Timecode m_tc;
QString m_id;
ClipType::ProducerType m_type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment