|
@@ -18,10 +18,8 @@ ArgDialog::ArgDialog(QWidget *parent) :
|
|
|
{
|
|
|
ui->setupUi(this);
|
|
|
QObject::connect(ui->addFile, &QPushButton::clicked, this, [this]() {
|
|
|
- QFileDialog file_dialog;
|
|
|
- file_dialog.setStyleSheet("QFileDialog QWidget { color: white; font-weight: 700}");
|
|
|
- auto file_path = file_dialog.getOpenFileName(this,
|
|
|
- tr("Open File"), "~", tr("All Files (*.*)"), nullptr, QFileDialog::DontUseNativeDialog);
|
|
|
+ KFileDialog file_dialog{};
|
|
|
+ auto file_path = file_dialog.openFileDialog();
|
|
|
qDebug() << "Selected file:" << file_path;
|
|
|
if (file_path.size() > 0) {
|
|
|
auto slash_index = file_path.lastIndexOf("/") + 1;
|