Skip to content

Commit 7a17c64

Browse files
committed
- Updated the framework version from Qt 5 to Qt 6. フレームワークを Qt 5 から Qt 6 に移行.
- Fixed a bug in the median filter function. メディアンフィルタ機能の不具合を修正.
1 parent 1320f9c commit 7a17c64

27 files changed

+1299
-1151
lines changed

MIT-LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Simple Image
2-
http://rexpit.blog29.fc2.com/blog-entry-63.html
2+
https://rexpit.blog.fc2.com/blog-entry-63.html
33

44
The MIT License (MIT)
55

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
1-
Simple Image
2-
ver. 0.00025 2013/05/18
1+
# Simple Image
2+
3+
ver. 0.00026 2024/02/11
34
Copyright (C) 2012-2013 rexpit
45

5-
- 1 概要
6+
## 1 概要
7+
68
rexpit が GUI の練習で作った画像処理ソフトです。
79
画像処理の典型的なアルゴリズムを手軽に試すことができます。
810

9-
- 2 開発環境
10-
言語: C++03
11-
フレームワーク: Qt 5
1211

13-
- 3 使い方
12+
## 2 開発環境
13+
14+
- 言語: C++17
15+
- フレームワーク: Qt 6
16+
17+
## 3 使い方
18+
1419
画像ファイルを開いていろいろいじるといいんじゃないかな。
1520

16-
- 4 既知の問題
17-
* 8 bit PNG を処理できない。異常に長い時間がかかるので注意。
21+
## 4 既知の問題
22+
23+
- 8 bit PNG を処理できない。異常に長い時間がかかるので注意。

SimpleImage.pro

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,44 @@
1-
#-------------------------------------------------
2-
#
3-
# Project created by QtCreator 2012-03-06T11:35:41
4-
#
5-
#-------------------------------------------------
6-
71
QT += core gui
82

93
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
104

11-
TARGET = SimpleImage
12-
TEMPLATE = app
5+
CONFIG += c++17
136

7+
# You can make your code fail to compile if it uses deprecated APIs.
8+
# In order to do so, uncomment the following line.
9+
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
1410

1511
SOURCES += main.cpp\
16-
mainwindow.cpp \
17-
imagefilter.cpp \
18-
to1bitdialog.cpp \
19-
linearfilterdialog.cpp \
20-
imagewidget.cpp \
21-
normfilterdialog.cpp \
12+
mainwindow.cpp \
13+
imagefilter.cpp \
14+
to1bitdialog.cpp \
15+
linearfilterdialog.cpp \
16+
imagewidget.cpp \
17+
normfilterdialog.cpp \
2218
insertrandomnoisedialog.cpp
2319

24-
HEADERS += mainwindow.hpp \
25-
imagefilter.hpp \
26-
to1bitdialog.hpp \
27-
linearfilterdialog.hpp \
28-
imagewidget.hpp \
29-
normfilterdialog.hpp \
30-
common.hpp \
31-
insertrandomnoisedialog.hpp
20+
HEADERS += \
21+
common.h \
22+
imagefilter.h \
23+
imagewidget.h \
24+
insertrandomnoisedialog.h \
25+
linearfilterdialog.h \
26+
mainwindow.h \
27+
normfilterdialog.h \
28+
to1bitdialog.h
3229

3330
FORMS += mainwindow.ui \
34-
to1bitdialog.ui \
35-
linearfilterdialog.ui \
36-
normfilterdialog.ui \
31+
to1bitdialog.ui \
32+
linearfilterdialog.ui \
33+
normfilterdialog.ui \
3734
insertrandomnoisedialog.ui
3835

3936
RESOURCES += \
40-
resource.qrc
37+
resource.qrc
4138

4239
win32:RC_FILE += icon.rc
40+
41+
# Default rules for deployment.
42+
qnx: target.path = /tmp/$${TARGET}/bin
43+
else: unix:!android: target.path = /opt/$${TARGET}/bin
44+
!isEmpty(target.path): INSTALLS += target

common.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#ifndef COMMON_H
2+
#define COMMON_H
3+
4+
namespace common {
5+
constexpr auto ABOUT_TEXT = "Simple Image v.0.00025\nCopyright (C) 2012-2013 rexpit";
6+
constexpr auto MAGNIFICATION_MIN = 0.0625;
7+
constexpr auto MAGNIFICATION_MAX = 16.;
8+
}
9+
10+
#endif // COMMON_H

common.hpp

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)