Skip to content
Extraits de code Groupes Projets
Vérifiée Valider b2be082e rédigé par Kubat's avatar Kubat
Parcourir les fichiers

UI: Add the method to handle the double-click on tab to open its properties

parent 98aac127
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!6Add document views
......@@ -88,6 +88,7 @@ MainWindow::MainWindow(QWidget *parent) noexcept
documents->setUsesScrollButtons(true);
documents->setDocumentMode(true);
connect(documents, &QTabWidget::tabCloseRequested, this, &MainWindow::closeDocument);
connect(documents, &QTabWidget::tabBarDoubleClicked, this, &MainWindow::openProperties);
setCentralWidget(documents);
/* Enable/disable actions depending on the context */
......@@ -121,6 +122,14 @@ MainWindow::MainWindow(QWidget *parent) noexcept
statusBar()->showMessage("QSimulate has started");
}
void
MainWindow::openProperties(int index) noexcept
{
if (index < 0)
return;
qDebug().nospace() << "Tab n°" << index << " was double clicked";
}
std::weak_ptr<VivyDocument>
MainWindow::getCurrentDocument() const
{
......
......@@ -35,6 +35,8 @@ private slots:
void openDocument() noexcept;
void closeDocument(int index) noexcept;
void openProperties(int index) noexcept;
void loadSubDocumentAss() noexcept;
void loadSubDocumentVideo() noexcept;
void loadSubDocumentAudio() noexcept;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter