Changeset View
Changeset View
Standalone View
Standalone View
src/dialogs/choosefiledialog.h
1 | /* Atelier KDE Printer Host for 3D Printing | 1 | /* Atelier KDE Printer Host for 3D Printing | ||
---|---|---|---|---|---|
2 | Copyright (C) <2017> | 2 | Copyright (C) <2017> | ||
3 | Author: Lays Rodrigues - laysrodriguessilva@gmail.com | 3 | Author: Lays Rodrigues - laysrodriguessilva@gmail.com | ||
4 | Chris Rizzitello - rizzitello@kde.org | ||||
4 | 5 | | |||
5 | This program is free software: you can redistribute it and/or modify | 6 | This program is free software: you can redistribute it and/or modify | ||
6 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by | ||
7 | the Free Software Foundation, either version 3 of the License, or | 8 | the Free Software Foundation, either version 3 of the License, or | ||
8 | (at your option) any later version. | 9 | (at your option) any later version. | ||
9 | 10 | | |||
10 | This program is distributed in the hope that it will be useful, | 11 | This program is distributed in the hope that it will be useful, | ||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
Show All 10 Lines | |||||
22 | #include <QUrl> | 23 | #include <QUrl> | ||
23 | 24 | | |||
24 | class ChooseFileDialog : public QDialog | 25 | class ChooseFileDialog : public QDialog | ||
25 | { | 26 | { | ||
26 | Q_OBJECT | 27 | Q_OBJECT | ||
27 | public: | 28 | public: | ||
28 | ChooseFileDialog(QWidget *parent=nullptr, QList<QUrl> files = QList<QUrl>()); | 29 | ChooseFileDialog(QWidget *parent=nullptr, QList<QUrl> files = QList<QUrl>()); | ||
29 | virtual ~ChooseFileDialog() {} | 30 | virtual ~ChooseFileDialog() {} | ||
30 | const QString& choosenFile(); | 31 | const QUrl choosenFile(); | ||
tcanabrava: return by copy, not by reference. | |||||
31 | private: | 32 | private: | ||
32 | QString m_choosen_file; | 33 | QUrl m_choosen_file; | ||
33 | }; | 34 | }; |
return by copy, not by reference.