initial commit

This commit is contained in:
2019-11-06 18:23:04 +01:00
parent 62f1560760
commit cc6013ea9b
4 changed files with 165 additions and 28 deletions
+13
View File
@@ -15,6 +15,16 @@ QT_BEGIN_NAMESPACE
namespace Ui { class cMainWindow; }
QT_END_NAMESPACE
typedef struct tagIMAGEFORMAT
{
QString shortName;
QString extension;
bool read;
bool write;
} IMAGEFORMAT;
class cMainWindow : public QMainWindow
{
Q_OBJECT
@@ -29,6 +39,7 @@ private:
QStandardItemModel* m_lpFileListModel;
QMimeDatabase m_mimeDB;
QList<IMAGEFORMAT> m_imageFormats;
void initUI();
@@ -48,9 +59,11 @@ private slots:
void onClearList();
void onConvert();
void onThumbnailSize(int size);
void onAddEntry(const QString& file);
protected:
void closeEvent(QCloseEvent* event);
void addImageFormat(const char* shortName, const char* extension);
};
#endif // CMAINWINDOW_H