Commit a013623b authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

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/>. ...@@ -56,6 +56,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <QFontDatabase> #include <QFontDatabase>
#include <QHBoxLayout> #include <QHBoxLayout>
#include <QLabel> #include <QLabel>
#include <KSqueezedTextLabel>
#include <QMenu> #include <QMenu>
#include <QMimeData> #include <QMimeData>
#include <QMimeDatabase> #include <QMimeDatabase>
...@@ -178,7 +179,9 @@ ClipPropertiesController::ClipPropertiesController(ClipController *controller, Q ...@@ -178,7 +179,9 @@ ClipPropertiesController::ClipPropertiesController(ClipController *controller, Q
setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Preferred); setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Preferred);
auto *lay = new QVBoxLayout; auto *lay = new QVBoxLayout;
lay->setContentsMargins(0, 0, 0, 0); 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); lay->addWidget(m_clipLabel);
m_tabWidget = new QTabWidget(this); m_tabWidget = new QTabWidget(this);
lay->addWidget(m_tabWidget); lay->addWidget(m_tabWidget);
......
...@@ -33,7 +33,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. ...@@ -33,7 +33,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
class ClipController; class ClipController;
class QMimeData; class QMimeData;
class QTextEdit; class QTextEdit;
class QLabel; class KSqueezedTextLabel;
class QComboBox; class QComboBox;
class QListWidget; class QListWidget;
class QGroupBox; class QGroupBox;
...@@ -101,7 +101,7 @@ private slots: ...@@ -101,7 +101,7 @@ private slots:
private: private:
ClipController *m_controller; ClipController *m_controller;
QTabWidget *m_tabWidget; QTabWidget *m_tabWidget;
QLabel *m_clipLabel; KSqueezedTextLabel *m_clipLabel;
Timecode m_tc; Timecode m_tc;
QString m_id; QString m_id;
ClipType::ProducerType m_type; 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