pollymc/launcher/ui/GuiUtil.h

14 lines
516 B
C
Raw Normal View History

#pragma once
#include <QWidget>
#include <optional>
namespace GuiUtil
{
QString fetchFlameKey(QWidget *parentWidget = nullptr);
std::optional<QString> uploadPaste(const QString &name, const QString &text, QWidget *parentWidget);
void setClipboardText(const QString &text);
QStringList BrowseForFiles(QString context, QString caption, QString filter, QString defaultPath, QWidget *parentWidget);
QString BrowseForFile(QString context, QString caption, QString filter, QString defaultPath, QWidget *parentWidget);
}