mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 17:44:01 -07:00
Move method to static
This commit is contained in:
parent
09ab3bbb8f
commit
960785b428
2 changed files with 1 additions and 3 deletions
|
|
@ -71,7 +71,7 @@ static QStringList getAllFiles(const QString &filePath)
|
||||||
return allFiles;
|
return allFiles;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool confirmOverwriteIfExists(QWidget *parent, const QString &filePath)
|
static bool confirmOverwriteIfExists(QWidget *parent, const QString &filePath)
|
||||||
{
|
{
|
||||||
QFileInfo fileInfo(filePath);
|
QFileInfo fileInfo(filePath);
|
||||||
QString newFileName = QDir::toNativeSeparators(fileInfo.path() + "/" + fileInfo.completeBaseName() + ".cod");
|
QString newFileName = QDir::toNativeSeparators(fileInfo.path() + "/" + fileInfo.completeBaseName() + ".cod");
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,6 @@
|
||||||
|
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
inline bool confirmOverwriteIfExists(QWidget *parent, const QString &filePath);
|
|
||||||
|
|
||||||
class DeckPreviewWidget;
|
class DeckPreviewWidget;
|
||||||
class DeckPreviewDeckTagsDisplayWidget : public QWidget
|
class DeckPreviewDeckTagsDisplayWidget : public QWidget
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue