- Bug in Funktionanzeige behoben
- Auszuschliessende Verzeichnisse in Projektfunktionen hinzugefügt - Dateien können als Paramter übergeben werden - Englisch hinzugefügt
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <QMessageBox>
|
||||
#include <QCloseEvent>
|
||||
#include <QSettings>
|
||||
#include <QFileInfo>
|
||||
|
||||
#include "AboutDialog.h"
|
||||
#include "filetree/FileTreePanel.h"
|
||||
@@ -45,6 +46,21 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
|
||||
MainWindow::~MainWindow() = default;
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Datei(en) von der Kommandozeile öffnen
|
||||
// ---------------------------------------------------------------------------
|
||||
void MainWindow::openFilesFromArguments(const QStringList &filePaths)
|
||||
{
|
||||
for (const QString &path : filePaths)
|
||||
{
|
||||
const QFileInfo info(path);
|
||||
if (info.exists() && info.isFile())
|
||||
{
|
||||
m_editor->openFile(info.absoluteFilePath());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// UI aufbauen
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user