diff --git a/debian/control b/debian/control index 4a5a64a1..575ccdf9 100644 --- a/debian/control +++ b/debian/control @@ -28,4 +28,4 @@ Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, qt5-image-formats-plugins, deepin-picker-cli Description: Draw for UOS Draw is a lightweight drawing tool for users to freely draw and simply edit images. -Recommends: uos-reporter, deepin-event-log +Recommends: uos-reporter, deepin-event-log, kimageformat-plugins diff --git a/deepin-draw.desktop b/deepin-draw.desktop index 9dfdf1be..e45e2bb5 100644 --- a/deepin-draw.desktop +++ b/deepin-draw.desktop @@ -78,7 +78,7 @@ GenericName[zh_CN]=画板 GenericName[zh_HK]=畫板 GenericName[zh_TW]=畫板 Icon=deepin-draw -MimeType=image/bmp;image/bmp24;image/jpg;image/jpe;image/jpeg;image/jpeg24;image/jng;image/png;image/tif;image/tiff;image/tiff24;image/xpm;image/xbm;image/pbm;image/pgm;image/ppm;image/xpm;image/x-portable-graymap;image/x-xpixmap;image/x-xbitmap;image/x-portable-pixmap;application/x-ddf +MimeType=image/bmp;image/bmp24;image/jpg;image/jpe;image/jpeg;image/jpeg24;image/jng;image/png;image/tif;image/tiff;image/tiff24;image/xpm;image/xbm;image/pbm;image/pgm;image/ppm;image/xpm;image/x-portable-graymap;image/x-xpixmap;image/x-xbitmap;image/x-portable-pixmap;application/x-ddf;image/heif;image/hej2k;image/avif Name=Deepin Draw Name[am_ET]=ዲፕኢን መሳያ Name[ar]=رسام ديبين diff --git a/src/application.cpp b/src/application.cpp index 43b580c0..b69105c5 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -52,7 +52,7 @@ Application::Application(int &argc, char **argv) s_drawApp = this; } - supReadFormats = QStringList() << "ddf" << "png" << "jpeg" << "jpg" << "bmp" << "tif" << "tiff" << "ppm" << "xbm" << "xpm" << "pgm" << "pbm"; + supReadFormats = QStringList() << "ddf" << "png" << "jpeg" << "jpg" << "bmp" << "tif" << "tiff" << "ppm" << "xbm" << "xpm" << "pgm" << "pbm" << "avif" << "heif" << "heic"; supReadFormatsFilter = QStringList() << QObject::tr("DDF Drawings") + "(*.ddf)" << "PNG(*.png)" << "JPEG(*.jpeg *.jpg)" @@ -60,7 +60,9 @@ Application::Application(int &argc, char **argv) << "TIFF(*.tif *.tiff)" << "PPM(*.ppm)" << "XBM(*.xbm)" - << "XPM(*.xpm)"; + << "XPM(*.xpm)" + << "AVIF(*.avif)" + << "HEIC(*.heic *.heif)"; supWriteFormatFilters = QStringList() << QObject::tr("DDF Drawings") + "(*.ddf)" << "PNG(*.png)" << "JPEG(*.jpeg *.jpg)" @@ -69,9 +71,11 @@ Application::Application(int &argc, char **argv) << "PDF(*.pdf)" << "PPM(*.ppm)" << "XBM(*.xbm)" - << "XPM(*.xpm)"; + << "XPM(*.xpm)" + << "AVIF(*.avif)" + << "HEIC(*.heic *.heif)"; - supWriteFormats = QStringList() << "ddf" << "png" << "jpeg" << "jpg" << "bmp" << "tif" << "tiff" << "pdf" << "ppm" << "xbm" << "xpm"; + supWriteFormats = QStringList() << "ddf" << "png" << "jpeg" << "jpg" << "bmp" << "tif" << "tiff" << "pdf" << "ppm" << "xbm" << "xpm" << "avif" << "heif" << "heic"; #if (DTK_VERSION < DTK_VERSION_CHECK(5, 4, 0, 0)) _dApp = new DApplication(argc, argv);