From 26a4703398a22d9d044e6abdbd83031c86c5faf5 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 11 Jun 2018 17:11:07 +0800 Subject: [PATCH 1/4] Move .qrc files into its own directory --- src/app/CMakeLists.txt | 6 +- src/icons.qrc | 386 ------------------------------ src/icons/icons.qrc | 386 ++++++++++++++++++++++++++++++ src/lang.qrc | 54 ----- src/lang/lang.qrc | 54 +++++ src/searchengine.qrc | 16 -- src/searchengine/searchengine.qrc | 16 ++ src/src.pro | 6 +- src/webui/CMakeLists.txt | 2 +- src/webui/webui.pri | 2 +- src/webui/webui.qrc | 49 ---- src/webui/www/webui.qrc | 49 ++++ 12 files changed, 513 insertions(+), 513 deletions(-) delete mode 100644 src/icons.qrc create mode 100644 src/icons/icons.qrc delete mode 100644 src/lang.qrc create mode 100644 src/lang/lang.qrc delete mode 100644 src/searchengine.qrc create mode 100644 src/searchengine/searchengine.qrc delete mode 100644 src/webui/webui.qrc create mode 100644 src/webui/www/webui.qrc diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt index f6d0989c7..60139bca5 100644 --- a/src/app/CMakeLists.txt +++ b/src/app/CMakeLists.txt @@ -30,7 +30,7 @@ set_source_files_properties(${QBT_TS_FILES} PROPERTIES OUTPUT_LOCATION "${QBT_QM find_package(Qt5 COMPONENTS LinguistTools REQUIRED) qt5_add_translation(QBT_QM_FILES ${QBT_TS_FILES}) -get_filename_component(_lang_qrc_src "${CMAKE_CURRENT_SOURCE_DIR}/../lang.qrc" ABSOLUTE) +get_filename_component(_lang_qrc_src "${CMAKE_CURRENT_SOURCE_DIR}/../lang/lang.qrc" ABSOLUTE) get_filename_component(_lang_qrc_dst "${CMAKE_CURRENT_BINARY_DIR}/../lang.qrc" ABSOLUTE) get_filename_component(_lang_qrc_dst_dir "${CMAKE_CURRENT_BINARY_DIR}/../" ABSOLUTE) @@ -43,8 +43,8 @@ foreach(qm_file ${QBT_QM_FILES}) endforeach() set(QBT_APP_RESOURCES -../icons.qrc -../searchengine.qrc +../icons/icons.qrc +../searchengine/searchengine.qrc "${_lang_qrc_dst}" ) diff --git a/src/icons.qrc b/src/icons.qrc deleted file mode 100644 index b0ac65c5b..000000000 --- a/src/icons.qrc +++ /dev/null @@ -1,386 +0,0 @@ - - - icons/3-state-checkbox.gif - icons/flags/ad.svg - icons/flags/ae.svg - icons/flags/af.svg - icons/flags/ag.svg - icons/flags/ai.svg - icons/flags/al.svg - icons/flags/am.svg - icons/flags/ao.svg - icons/flags/aq.svg - icons/flags/ar.svg - icons/flags/as.svg - icons/flags/at.svg - icons/flags/au.svg - icons/flags/aw.svg - icons/flags/ax.svg - icons/flags/az.svg - icons/flags/ba.svg - icons/flags/bb.svg - icons/flags/bd.svg - icons/flags/be.svg - icons/flags/bf.svg - icons/flags/bg.svg - icons/flags/bh.svg - icons/flags/bi.svg - icons/flags/bj.svg - icons/flags/bl.svg - icons/flags/bm.svg - icons/flags/bn.svg - icons/flags/bo.svg - icons/flags/bq.svg - icons/flags/br.svg - icons/flags/bs.svg - icons/flags/bt.svg - icons/flags/bv.svg - icons/flags/bw.svg - icons/flags/by.svg - icons/flags/bz.svg - icons/flags/ca.svg - icons/flags/cc.svg - icons/flags/cd.svg - icons/flags/cf.svg - icons/flags/cg.svg - icons/flags/ch.svg - icons/flags/ci.svg - icons/flags/ck.svg - icons/flags/cl.svg - icons/flags/cm.svg - icons/flags/cn.svg - icons/flags/co.svg - icons/flags/cr.svg - icons/flags/cu.svg - icons/flags/cv.svg - icons/flags/cw.svg - icons/flags/cx.svg - icons/flags/cy.svg - icons/flags/cz.svg - icons/flags/de.svg - icons/flags/dj.svg - icons/flags/dk.svg - icons/flags/dm.svg - icons/flags/do.svg - icons/flags/dz.svg - icons/flags/ec.svg - icons/flags/ee.svg - icons/flags/eg.svg - icons/flags/eh.svg - icons/flags/er.svg - icons/flags/es.svg - icons/flags/et.svg - icons/flags/fi.svg - icons/flags/fj.svg - icons/flags/fk.svg - icons/flags/fm.svg - icons/flags/fo.svg - icons/flags/fr.svg - icons/flags/ga.svg - icons/flags/gb.svg - icons/flags/gd.svg - icons/flags/ge.svg - icons/flags/gf.svg - icons/flags/gg.svg - icons/flags/gh.svg - icons/flags/gi.svg - icons/flags/gl.svg - icons/flags/gm.svg - icons/flags/gn.svg - icons/flags/gp.svg - icons/flags/gq.svg - icons/flags/gr.svg - icons/flags/gs.svg - icons/flags/gt.svg - icons/flags/gu.svg - icons/flags/gw.svg - icons/flags/gy.svg - icons/flags/hk.svg - icons/flags/hm.svg - icons/flags/hn.svg - icons/flags/hr.svg - icons/flags/ht.svg - icons/flags/hu.svg - icons/flags/id.svg - icons/flags/ie.svg - icons/flags/il.svg - icons/flags/im.svg - icons/flags/in.svg - icons/flags/io.svg - icons/flags/iq.svg - icons/flags/ir.svg - icons/flags/is.svg - icons/flags/it.svg - icons/flags/je.svg - icons/flags/jm.svg - icons/flags/jo.svg - icons/flags/jp.svg - icons/flags/ke.svg - icons/flags/kg.svg - icons/flags/kh.svg - icons/flags/ki.svg - icons/flags/km.svg - icons/flags/kn.svg - icons/flags/kp.svg - icons/flags/kr.svg - icons/flags/kw.svg - icons/flags/ky.svg - icons/flags/kz.svg - icons/flags/la.svg - icons/flags/lb.svg - icons/flags/lc.svg - icons/flags/li.svg - icons/flags/lk.svg - icons/flags/lr.svg - icons/flags/ls.svg - icons/flags/lt.svg - icons/flags/lu.svg - icons/flags/lv.svg - icons/flags/ly.svg - icons/flags/ma.svg - icons/flags/mc.svg - icons/flags/md.svg - icons/flags/me.svg - icons/flags/mg.svg - icons/flags/mh.svg - icons/flags/mk.svg - icons/flags/ml.svg - icons/flags/mm.svg - icons/flags/mn.svg - icons/flags/mo.svg - icons/flags/mp.svg - icons/flags/mq.svg - icons/flags/mr.svg - icons/flags/ms.svg - icons/flags/mt.svg - icons/flags/mu.svg - icons/flags/mv.svg - icons/flags/mw.svg - icons/flags/mx.svg - icons/flags/my.svg - icons/flags/mz.svg - icons/flags/na.svg - icons/flags/nc.svg - icons/flags/ne.svg - icons/flags/nf.svg - icons/flags/ng.svg - icons/flags/ni.svg - icons/flags/nl.svg - icons/flags/no.svg - icons/flags/np.svg - icons/flags/nr.svg - icons/flags/nu.svg - icons/flags/nz.svg - icons/flags/om.svg - icons/flags/pa.svg - icons/flags/pe.svg - icons/flags/pf.svg - icons/flags/pg.svg - icons/flags/ph.svg - icons/flags/pk.svg - icons/flags/pl.svg - icons/flags/pm.svg - icons/flags/pn.svg - icons/flags/pr.svg - icons/flags/ps.svg - icons/flags/pt.svg - icons/flags/pw.svg - icons/flags/py.svg - icons/flags/qa.svg - icons/flags/re.svg - icons/flags/ro.svg - icons/flags/rs.svg - icons/flags/ru.svg - icons/flags/rw.svg - icons/flags/sa.svg - icons/flags/sb.svg - icons/flags/sc.svg - icons/flags/sd.svg - icons/flags/se.svg - icons/flags/sg.svg - icons/flags/sh.svg - icons/flags/si.svg - icons/flags/sj.svg - icons/flags/sk.svg - icons/flags/sl.svg - icons/flags/sm.svg - icons/flags/sn.svg - icons/flags/so.svg - icons/flags/sr.svg - icons/flags/ss.svg - icons/flags/st.svg - icons/flags/sv.svg - icons/flags/sx.svg - icons/flags/sy.svg - icons/flags/sz.svg - icons/flags/tc.svg - icons/flags/td.svg - icons/flags/tf.svg - icons/flags/tg.svg - icons/flags/th.svg - icons/flags/tj.svg - icons/flags/tk.svg - icons/flags/tl.svg - icons/flags/tm.svg - icons/flags/tn.svg - icons/flags/to.svg - icons/flags/tr.svg - icons/flags/tt.svg - icons/flags/tv.svg - icons/flags/tw.svg - icons/flags/tz.svg - icons/flags/ua.svg - icons/flags/ug.svg - icons/flags/um.svg - icons/flags/us.svg - icons/flags/uy.svg - icons/flags/uz.svg - icons/flags/va.svg - icons/flags/vc.svg - icons/flags/ve.svg - icons/flags/vg.svg - icons/flags/vi.svg - icons/flags/vn.svg - icons/flags/vu.svg - icons/flags/wf.svg - icons/flags/ws.svg - icons/flags/ye.svg - icons/flags/yt.svg - icons/flags/za.svg - icons/flags/zm.svg - icons/flags/zw.svg - icons/L.gif - icons/loading.png - icons/qbt-theme/application-exit.png - icons/qbt-theme/application-rss+xml.png - icons/qbt-theme/application-x-mswinurl.png - icons/qbt-theme/checked.png - icons/qbt-theme/configure.png - icons/qbt-theme/dialog-cancel.png - icons/qbt-theme/dialog-information.png - icons/qbt-theme/dialog-warning.png - icons/qbt-theme/document-edit-verify.png - icons/qbt-theme/document-edit.png - icons/qbt-theme/document-encrypt.png - icons/qbt-theme/document-import.png - icons/qbt-theme/document-new.png - icons/qbt-theme/document-properties.png - icons/qbt-theme/document-save.png - icons/qbt-theme/download.png - icons/qbt-theme/edit-clear-history.png - icons/qbt-theme/edit-clear.png - icons/qbt-theme/edit-copy.png - icons/qbt-theme/edit-cut.png - icons/qbt-theme/edit-delete.png - icons/qbt-theme/edit-find-user.png - icons/qbt-theme/edit-find.png - icons/qbt-theme/edit-paste.png - icons/qbt-theme/edit-rename.png - icons/qbt-theme/folder-documents.png - icons/qbt-theme/folder-download.png - icons/qbt-theme/folder-new.png - icons/qbt-theme/folder-remote.png - icons/qbt-theme/gear.png - icons/qbt-theme/gear32.png - icons/qbt-theme/go-bottom.png - icons/qbt-theme/go-down.png - icons/qbt-theme/go-top.png - icons/qbt-theme/go-up.png - icons/qbt-theme/help-about.png - icons/qbt-theme/help-contents.png - icons/qbt-theme/inode-directory.png - icons/qbt-theme/insert-link.png - icons/qbt-theme/kt-magnet.png - icons/qbt-theme/kt-set-max-download-speed.png - icons/qbt-theme/kt-set-max-upload-speed.png - icons/qbt-theme/list-add.png - icons/qbt-theme/list-remove.png - icons/qbt-theme/mail-folder-inbox.png - icons/qbt-theme/mail-mark-read.png - icons/qbt-theme/media-playback-pause.png - icons/qbt-theme/media-playback-start.png - icons/qbt-theme/media-seek-forward.png - icons/qbt-theme/network-server.png - icons/qbt-theme/network-wired.png - icons/qbt-theme/object-locked.png - icons/qbt-theme/office-chart-line.png - icons/qbt-theme/preferences-desktop.png - icons/qbt-theme/preferences-other.png - icons/qbt-theme/preferences-system-network.png - icons/qbt-theme/preferences-web-browser-cookies.png - icons/qbt-theme/rss-config.png - icons/qbt-theme/security-high.png - icons/qbt-theme/security-low.png - icons/qbt-theme/services.png - icons/qbt-theme/speedometer.png - icons/qbt-theme/system-log-out.png - icons/qbt-theme/tab-close.png - icons/qbt-theme/task-attention.png - icons/qbt-theme/task-complete.png - icons/qbt-theme/task-ongoing.png - icons/qbt-theme/task-reject.png - icons/qbt-theme/text-plain.png - icons/qbt-theme/tools-report-bug.png - icons/qbt-theme/unavailable.png - icons/qbt-theme/user-group-delete.png - icons/qbt-theme/user-group-new.png - icons/qbt-theme/view-calendar-journal.png - icons/qbt-theme/view-categories.png - icons/qbt-theme/view-filter.png - icons/qbt-theme/view-preview.png - icons/qbt-theme/view-refresh.png - icons/qbt-theme/view-statistics.png - icons/qbt-theme/wallet-open.png - icons/qbt-theme/webui.png - icons/skin/arrow-right.gif - icons/skin/bg-dropdown.gif - icons/skin/bg-handle-horizontal.gif - icons/skin/bg-header.gif - icons/skin/bg-panel-header.gif - icons/skin/checking.png - icons/skin/collapse-expand.gif - icons/skin/completed.png - icons/skin/connected.png - icons/skin/disconnected.png - icons/skin/dock-tabs.gif - icons/skin/download.png - icons/skin/downloading.png - icons/skin/error.png - icons/skin/filteractive.png - icons/skin/filterall.png - icons/skin/filterinactive.png - icons/skin/firewalled.png - icons/skin/handle-icon-horizontal.gif - icons/skin/handle-icon.gif - icons/skin/knob.gif - icons/skin/logo-blank.gif - icons/skin/logo.gif - icons/skin/logo2.gif - icons/skin/mascot.png - icons/skin/paused.png - icons/skin/qbittorrent-tray.svg - icons/skin/qbittorrent-tray-dark.svg - icons/skin/qbittorrent-tray-light.svg - icons/skin/qbittorrent32.png - icons/skin/queued.png - icons/skin/ratio.png - icons/skin/resumed.png - icons/skin/seeding.png - icons/skin/slider-area.gif - icons/skin/spacer.gif - icons/skin/spinner-placeholder.gif - icons/skin/spinner.gif - icons/skin/splash.png - icons/skin/stalledDL.png - icons/skin/stalledUP.png - icons/skin/tabs.gif - icons/skin/toolbox-divider.gif - icons/skin/toolbox-divider2.gif - icons/skin/uploading.png - icons/slow.png - icons/slow_off.png - icons/sphere.png - icons/sphere2.png - icons/url.png - - diff --git a/src/icons/icons.qrc b/src/icons/icons.qrc new file mode 100644 index 000000000..7fd89b931 --- /dev/null +++ b/src/icons/icons.qrc @@ -0,0 +1,386 @@ + + + 3-state-checkbox.gif + flags/ad.svg + flags/ae.svg + flags/af.svg + flags/ag.svg + flags/ai.svg + flags/al.svg + flags/am.svg + flags/ao.svg + flags/aq.svg + flags/ar.svg + flags/as.svg + flags/at.svg + flags/au.svg + flags/aw.svg + flags/ax.svg + flags/az.svg + flags/ba.svg + flags/bb.svg + flags/bd.svg + flags/be.svg + flags/bf.svg + flags/bg.svg + flags/bh.svg + flags/bi.svg + flags/bj.svg + flags/bl.svg + flags/bm.svg + flags/bn.svg + flags/bo.svg + flags/bq.svg + flags/br.svg + flags/bs.svg + flags/bt.svg + flags/bv.svg + flags/bw.svg + flags/by.svg + flags/bz.svg + flags/ca.svg + flags/cc.svg + flags/cd.svg + flags/cf.svg + flags/cg.svg + flags/ch.svg + flags/ci.svg + flags/ck.svg + flags/cl.svg + flags/cm.svg + flags/cn.svg + flags/co.svg + flags/cr.svg + flags/cu.svg + flags/cv.svg + flags/cw.svg + flags/cx.svg + flags/cy.svg + flags/cz.svg + flags/de.svg + flags/dj.svg + flags/dk.svg + flags/dm.svg + flags/do.svg + flags/dz.svg + flags/ec.svg + flags/ee.svg + flags/eg.svg + flags/eh.svg + flags/er.svg + flags/es.svg + flags/et.svg + flags/fi.svg + flags/fj.svg + flags/fk.svg + flags/fm.svg + flags/fo.svg + flags/fr.svg + flags/ga.svg + flags/gb.svg + flags/gd.svg + flags/ge.svg + flags/gf.svg + flags/gg.svg + flags/gh.svg + flags/gi.svg + flags/gl.svg + flags/gm.svg + flags/gn.svg + flags/gp.svg + flags/gq.svg + flags/gr.svg + flags/gs.svg + flags/gt.svg + flags/gu.svg + flags/gw.svg + flags/gy.svg + flags/hk.svg + flags/hm.svg + flags/hn.svg + flags/hr.svg + flags/ht.svg + flags/hu.svg + flags/id.svg + flags/ie.svg + flags/il.svg + flags/im.svg + flags/in.svg + flags/io.svg + flags/iq.svg + flags/ir.svg + flags/is.svg + flags/it.svg + flags/je.svg + flags/jm.svg + flags/jo.svg + flags/jp.svg + flags/ke.svg + flags/kg.svg + flags/kh.svg + flags/ki.svg + flags/km.svg + flags/kn.svg + flags/kp.svg + flags/kr.svg + flags/kw.svg + flags/ky.svg + flags/kz.svg + flags/la.svg + flags/lb.svg + flags/lc.svg + flags/li.svg + flags/lk.svg + flags/lr.svg + flags/ls.svg + flags/lt.svg + flags/lu.svg + flags/lv.svg + flags/ly.svg + flags/ma.svg + flags/mc.svg + flags/md.svg + flags/me.svg + flags/mg.svg + flags/mh.svg + flags/mk.svg + flags/ml.svg + flags/mm.svg + flags/mn.svg + flags/mo.svg + flags/mp.svg + flags/mq.svg + flags/mr.svg + flags/ms.svg + flags/mt.svg + flags/mu.svg + flags/mv.svg + flags/mw.svg + flags/mx.svg + flags/my.svg + flags/mz.svg + flags/na.svg + flags/nc.svg + flags/ne.svg + flags/nf.svg + flags/ng.svg + flags/ni.svg + flags/nl.svg + flags/no.svg + flags/np.svg + flags/nr.svg + flags/nu.svg + flags/nz.svg + flags/om.svg + flags/pa.svg + flags/pe.svg + flags/pf.svg + flags/pg.svg + flags/ph.svg + flags/pk.svg + flags/pl.svg + flags/pm.svg + flags/pn.svg + flags/pr.svg + flags/ps.svg + flags/pt.svg + flags/pw.svg + flags/py.svg + flags/qa.svg + flags/re.svg + flags/ro.svg + flags/rs.svg + flags/ru.svg + flags/rw.svg + flags/sa.svg + flags/sb.svg + flags/sc.svg + flags/sd.svg + flags/se.svg + flags/sg.svg + flags/sh.svg + flags/si.svg + flags/sj.svg + flags/sk.svg + flags/sl.svg + flags/sm.svg + flags/sn.svg + flags/so.svg + flags/sr.svg + flags/ss.svg + flags/st.svg + flags/sv.svg + flags/sx.svg + flags/sy.svg + flags/sz.svg + flags/tc.svg + flags/td.svg + flags/tf.svg + flags/tg.svg + flags/th.svg + flags/tj.svg + flags/tk.svg + flags/tl.svg + flags/tm.svg + flags/tn.svg + flags/to.svg + flags/tr.svg + flags/tt.svg + flags/tv.svg + flags/tw.svg + flags/tz.svg + flags/ua.svg + flags/ug.svg + flags/um.svg + flags/us.svg + flags/uy.svg + flags/uz.svg + flags/va.svg + flags/vc.svg + flags/ve.svg + flags/vg.svg + flags/vi.svg + flags/vn.svg + flags/vu.svg + flags/wf.svg + flags/ws.svg + flags/ye.svg + flags/yt.svg + flags/za.svg + flags/zm.svg + flags/zw.svg + L.gif + loading.png + qbt-theme/application-exit.png + qbt-theme/application-rss+xml.png + qbt-theme/application-x-mswinurl.png + qbt-theme/checked.png + qbt-theme/configure.png + qbt-theme/dialog-cancel.png + qbt-theme/dialog-information.png + qbt-theme/dialog-warning.png + qbt-theme/document-edit-verify.png + qbt-theme/document-edit.png + qbt-theme/document-encrypt.png + qbt-theme/document-import.png + qbt-theme/document-new.png + qbt-theme/document-properties.png + qbt-theme/document-save.png + qbt-theme/download.png + qbt-theme/edit-clear-history.png + qbt-theme/edit-clear.png + qbt-theme/edit-copy.png + qbt-theme/edit-cut.png + qbt-theme/edit-delete.png + qbt-theme/edit-find-user.png + qbt-theme/edit-find.png + qbt-theme/edit-paste.png + qbt-theme/edit-rename.png + qbt-theme/folder-documents.png + qbt-theme/folder-download.png + qbt-theme/folder-new.png + qbt-theme/folder-remote.png + qbt-theme/gear.png + qbt-theme/gear32.png + qbt-theme/go-bottom.png + qbt-theme/go-down.png + qbt-theme/go-top.png + qbt-theme/go-up.png + qbt-theme/help-about.png + qbt-theme/help-contents.png + qbt-theme/inode-directory.png + qbt-theme/insert-link.png + qbt-theme/kt-magnet.png + qbt-theme/kt-set-max-download-speed.png + qbt-theme/kt-set-max-upload-speed.png + qbt-theme/list-add.png + qbt-theme/list-remove.png + qbt-theme/mail-folder-inbox.png + qbt-theme/mail-mark-read.png + qbt-theme/media-playback-pause.png + qbt-theme/media-playback-start.png + qbt-theme/media-seek-forward.png + qbt-theme/network-server.png + qbt-theme/network-wired.png + qbt-theme/object-locked.png + qbt-theme/office-chart-line.png + qbt-theme/preferences-desktop.png + qbt-theme/preferences-other.png + qbt-theme/preferences-system-network.png + qbt-theme/preferences-web-browser-cookies.png + qbt-theme/rss-config.png + qbt-theme/security-high.png + qbt-theme/security-low.png + qbt-theme/services.png + qbt-theme/speedometer.png + qbt-theme/system-log-out.png + qbt-theme/tab-close.png + qbt-theme/task-attention.png + qbt-theme/task-complete.png + qbt-theme/task-ongoing.png + qbt-theme/task-reject.png + qbt-theme/text-plain.png + qbt-theme/tools-report-bug.png + qbt-theme/unavailable.png + qbt-theme/user-group-delete.png + qbt-theme/user-group-new.png + qbt-theme/view-calendar-journal.png + qbt-theme/view-categories.png + qbt-theme/view-filter.png + qbt-theme/view-preview.png + qbt-theme/view-refresh.png + qbt-theme/view-statistics.png + qbt-theme/wallet-open.png + qbt-theme/webui.png + skin/arrow-right.gif + skin/bg-dropdown.gif + skin/bg-handle-horizontal.gif + skin/bg-header.gif + skin/bg-panel-header.gif + skin/checking.png + skin/collapse-expand.gif + skin/completed.png + skin/connected.png + skin/disconnected.png + skin/dock-tabs.gif + skin/download.png + skin/downloading.png + skin/error.png + skin/filteractive.png + skin/filterall.png + skin/filterinactive.png + skin/firewalled.png + skin/handle-icon-horizontal.gif + skin/handle-icon.gif + skin/knob.gif + skin/logo-blank.gif + skin/logo.gif + skin/logo2.gif + skin/mascot.png + skin/paused.png + skin/qbittorrent-tray.svg + skin/qbittorrent-tray-dark.svg + skin/qbittorrent-tray-light.svg + skin/qbittorrent32.png + skin/queued.png + skin/ratio.png + skin/resumed.png + skin/seeding.png + skin/slider-area.gif + skin/spacer.gif + skin/spinner-placeholder.gif + skin/spinner.gif + skin/splash.png + skin/stalledDL.png + skin/stalledUP.png + skin/tabs.gif + skin/toolbox-divider.gif + skin/toolbox-divider2.gif + skin/uploading.png + slow.png + slow_off.png + sphere.png + sphere2.png + url.png + + diff --git a/src/lang.qrc b/src/lang.qrc deleted file mode 100644 index 611602950..000000000 --- a/src/lang.qrc +++ /dev/null @@ -1,54 +0,0 @@ - - - lang/qbittorrent_ar.qm - lang/qbittorrent_be.qm - lang/qbittorrent_bg.qm - lang/qbittorrent_ca.qm - lang/qbittorrent_cs.qm - lang/qbittorrent_da.qm - lang/qbittorrent_de.qm - lang/qbittorrent_el.qm - lang/qbittorrent_en.qm - lang/qbittorrent_en_AU.qm - lang/qbittorrent_en_GB.qm - lang/qbittorrent_eo.qm - lang/qbittorrent_es.qm - lang/qbittorrent_eu.qm - lang/qbittorrent_fi.qm - lang/qbittorrent_fr.qm - lang/qbittorrent_gl.qm - lang/qbittorrent_he.qm - lang/qbittorrent_hi_IN.qm - lang/qbittorrent_hr.qm - lang/qbittorrent_hu.qm - lang/qbittorrent_hy.qm - lang/qbittorrent_id.qm - lang/qbittorrent_is.qm - lang/qbittorrent_it.qm - lang/qbittorrent_ja.qm - lang/qbittorrent_ka.qm - lang/qbittorrent_ko.qm - lang/qbittorrent_lt.qm - lang/qbittorrent_lv_LV.qm - lang/qbittorrent_ms_MY.qm - lang/qbittorrent_nb.qm - lang/qbittorrent_nl.qm - lang/qbittorrent_oc.qm - lang/qbittorrent_pl.qm - lang/qbittorrent_pt_BR.qm - lang/qbittorrent_pt_PT.qm - lang/qbittorrent_ro.qm - lang/qbittorrent_ru.qm - lang/qbittorrent_sk.qm - lang/qbittorrent_sl.qm - lang/qbittorrent_sr.qm - lang/qbittorrent_sv.qm - lang/qbittorrent_tr.qm - lang/qbittorrent_uk.qm - lang/qbittorrent_uz@Latn.qm - lang/qbittorrent_vi.qm - lang/qbittorrent_zh.qm - lang/qbittorrent_zh_HK.qm - lang/qbittorrent_zh_TW.qm - - diff --git a/src/lang/lang.qrc b/src/lang/lang.qrc new file mode 100644 index 000000000..32d265acb --- /dev/null +++ b/src/lang/lang.qrc @@ -0,0 +1,54 @@ + + + qbittorrent_ar.qm + qbittorrent_be.qm + qbittorrent_bg.qm + qbittorrent_ca.qm + qbittorrent_cs.qm + qbittorrent_da.qm + qbittorrent_de.qm + qbittorrent_el.qm + qbittorrent_en.qm + qbittorrent_en_AU.qm + qbittorrent_en_GB.qm + qbittorrent_eo.qm + qbittorrent_es.qm + qbittorrent_eu.qm + qbittorrent_fi.qm + qbittorrent_fr.qm + qbittorrent_gl.qm + qbittorrent_he.qm + qbittorrent_hi_IN.qm + qbittorrent_hr.qm + qbittorrent_hu.qm + qbittorrent_hy.qm + qbittorrent_id.qm + qbittorrent_is.qm + qbittorrent_it.qm + qbittorrent_ja.qm + qbittorrent_ka.qm + qbittorrent_ko.qm + qbittorrent_lt.qm + qbittorrent_lv_LV.qm + qbittorrent_ms_MY.qm + qbittorrent_nb.qm + qbittorrent_nl.qm + qbittorrent_oc.qm + qbittorrent_pl.qm + qbittorrent_pt_BR.qm + qbittorrent_pt_PT.qm + qbittorrent_ro.qm + qbittorrent_ru.qm + qbittorrent_sk.qm + qbittorrent_sl.qm + qbittorrent_sr.qm + qbittorrent_sv.qm + qbittorrent_tr.qm + qbittorrent_uk.qm + qbittorrent_uz@Latn.qm + qbittorrent_vi.qm + qbittorrent_zh.qm + qbittorrent_zh_HK.qm + qbittorrent_zh_TW.qm + + diff --git a/src/searchengine.qrc b/src/searchengine.qrc deleted file mode 100644 index 0a91aac8c..000000000 --- a/src/searchengine.qrc +++ /dev/null @@ -1,16 +0,0 @@ - - - searchengine/nova3/helpers.py - searchengine/nova3/nova2.py - searchengine/nova3/nova2dl.py - searchengine/nova3/novaprinter.py - searchengine/nova3/sgmllib3.py - searchengine/nova3/socks.py - searchengine/nova/fix_encoding.py - searchengine/nova/helpers.py - searchengine/nova/nova2.py - searchengine/nova/nova2dl.py - searchengine/nova/novaprinter.py - searchengine/nova/socks.py - - diff --git a/src/searchengine/searchengine.qrc b/src/searchengine/searchengine.qrc new file mode 100644 index 000000000..00343dadd --- /dev/null +++ b/src/searchengine/searchengine.qrc @@ -0,0 +1,16 @@ + + + nova3/helpers.py + nova3/nova2.py + nova3/nova2dl.py + nova3/novaprinter.py + nova3/sgmllib3.py + nova3/socks.py + nova/fix_encoding.py + nova/helpers.py + nova/nova2.py + nova/nova2dl.py + nova/novaprinter.py + nova/socks.py + + diff --git a/src/src.pro b/src/src.pro index 3e1c4619e..cd4200a09 100644 --- a/src/src.pro +++ b/src/src.pro @@ -73,9 +73,9 @@ include(base/base.pri) # Resource files QMAKE_RESOURCE_FLAGS += -compress 9 -threshold 5 RESOURCES += \ - icons.qrc \ - lang.qrc \ - searchengine.qrc + icons/icons.qrc \ + lang/lang.qrc \ + searchengine/searchengine.qrc # Translations TRANSLATIONS += $$files(lang/qbittorrent_*.ts) diff --git a/src/webui/CMakeLists.txt b/src/webui/CMakeLists.txt index 894d5254e..1b04fdcb0 100644 --- a/src/webui/CMakeLists.txt +++ b/src/webui/CMakeLists.txt @@ -27,6 +27,6 @@ webapplication.cpp webui.cpp ) -qbt_target_sources(qBittorrent PRIVATE webui.qrc) +qbt_target_sources(qBittorrent PRIVATE www/webui.qrc) target_link_libraries(qbt_webui PUBLIC qbt_base) diff --git a/src/webui/webui.pri b/src/webui/webui.pri index 8d27a8d48..2c960ca7c 100644 --- a/src/webui/webui.pri +++ b/src/webui/webui.pri @@ -28,4 +28,4 @@ SOURCES += \ $$PWD/webapplication.cpp \ $$PWD/webui.cpp -RESOURCES += $$PWD/webui.qrc +RESOURCES += $$PWD/www/webui.qrc diff --git a/src/webui/webui.qrc b/src/webui/webui.qrc deleted file mode 100644 index 7baac49c9..000000000 --- a/src/webui/webui.qrc +++ /dev/null @@ -1,49 +0,0 @@ - - - www/private/about.html - www/private/addtrackers.html - www/private/confirmdeletion.html - www/private/css/Core.css - www/private/css/dynamicTable.css - www/private/css/Layout.css - www/private/css/style.css - www/private/css/Tabs.css - www/private/css/Window.css - www/private/download.html - www/private/downloadlimit.html - www/private/filters.html - www/private/index.html - www/private/newcategory.html - www/private/preferences.html - www/private/preferences_content.html - www/private/properties.html - www/private/properties_content.html - www/private/rename.html - www/private/scripts/client.js - www/private/scripts/contextmenu.js - www/private/scripts/download.js - www/private/scripts/dynamicTable.js - www/private/scripts/lib/clipboard.min.js - www/private/scripts/lib/excanvas-compressed.js - www/private/scripts/lib/mocha-yc.js - www/private/scripts/lib/mootools-1.2-core-yc.js - www/private/scripts/lib/mootools-1.2-more.js - www/private/scripts/lib/parametrics.js - www/private/scripts/misc.js - www/private/scripts/mocha-init.js - www/private/scripts/progressbar.js - www/private/scripts/prop-files.js - www/private/scripts/prop-general.js - www/private/scripts/prop-trackers.js - www/private/scripts/prop-webseeds.js - www/private/setlocation.html - www/private/shareratio.html - www/private/statistics.html - www/private/transferlist.html - www/private/upload.html - www/private/uploadlimit.html - www/public/css/login.css - www/public/login.html - www/public/scripts/lib/mootools-1.2-core-yc.js - - diff --git a/src/webui/www/webui.qrc b/src/webui/www/webui.qrc new file mode 100644 index 000000000..6fc7a9670 --- /dev/null +++ b/src/webui/www/webui.qrc @@ -0,0 +1,49 @@ + + + private/about.html + private/addtrackers.html + private/confirmdeletion.html + private/css/Core.css + private/css/dynamicTable.css + private/css/Layout.css + private/css/style.css + private/css/Tabs.css + private/css/Window.css + private/download.html + private/downloadlimit.html + private/filters.html + private/index.html + private/newcategory.html + private/preferences.html + private/preferences_content.html + private/properties.html + private/properties_content.html + private/rename.html + private/scripts/client.js + private/scripts/contextmenu.js + private/scripts/download.js + private/scripts/dynamicTable.js + private/scripts/lib/clipboard.min.js + private/scripts/lib/excanvas-compressed.js + private/scripts/lib/mocha-yc.js + private/scripts/lib/mootools-1.2-core-yc.js + private/scripts/lib/mootools-1.2-more.js + private/scripts/lib/parametrics.js + private/scripts/misc.js + private/scripts/mocha-init.js + private/scripts/progressbar.js + private/scripts/prop-files.js + private/scripts/prop-general.js + private/scripts/prop-trackers.js + private/scripts/prop-webseeds.js + private/setlocation.html + private/shareratio.html + private/statistics.html + private/transferlist.html + private/upload.html + private/uploadlimit.html + public/css/login.css + public/login.html + public/scripts/lib/mootools-1.2-core-yc.js + + From 6203f23f06ba3c03c54882fc3ed92a2ba3b0a751 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 11 Jun 2018 17:16:54 +0800 Subject: [PATCH 2/4] Move .ico files into icons dir --- src/{ => icons}/qbittorrent.ico | Bin src/{ => icons}/qbittorrent_file.ico | Bin src/qbittorrent.rc | Bin 2868 -> 2892 bytes src/qbittorrent_mingw.rc | 4 ++-- 4 files changed, 2 insertions(+), 2 deletions(-) rename src/{ => icons}/qbittorrent.ico (100%) rename src/{ => icons}/qbittorrent_file.ico (100%) diff --git a/src/qbittorrent.ico b/src/icons/qbittorrent.ico similarity index 100% rename from src/qbittorrent.ico rename to src/icons/qbittorrent.ico diff --git a/src/qbittorrent_file.ico b/src/icons/qbittorrent_file.ico similarity index 100% rename from src/qbittorrent_file.ico rename to src/icons/qbittorrent_file.ico diff --git a/src/qbittorrent.rc b/src/qbittorrent.rc index 4f712fbf141f7c723bc9a83b0288d7b6aaf0b6a2..63544a9d123e14dd67a737c4478dee172f6acf64 100644 GIT binary patch delta 40 jcmdlYc1CQ15_cv;GDAK?9z!uh%tS?JRId2Os$Ejwnc1$(&Pe8iHUAnKuT=mq+MJ9RwxIp diff --git a/src/qbittorrent_mingw.rc b/src/qbittorrent_mingw.rc index 3bae01916..33fd87bd5 100644 --- a/src/qbittorrent_mingw.rc +++ b/src/qbittorrent_mingw.rc @@ -1,3 +1,3 @@ -IDI_ICON1 ICON DISCARDABLE "qbittorrent.ico" -IDI_ICON2 ICON DISCARDABLE "qbittorrent_file.ico" +IDI_ICON1 ICON DISCARDABLE "icons\qbittorrent.ico" +IDI_ICON2 ICON DISCARDABLE "icons\qbittorrent_file.ico" 1 24 DISCARDABLE "qbittorrent.exe.manifest" From 5d94db9c7940aee9af769ce314c1dd1be9ddc18c Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 11 Jun 2018 17:21:45 +0800 Subject: [PATCH 3/4] Move .desktop file --- .tx/config | 2 +- dist/unix/CMakeLists.txt | 2 +- {src/icons => dist/unix}/qbittorrent.desktop | 0 unixconf.pri | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename {src/icons => dist/unix}/qbittorrent.desktop (100%) diff --git a/.tx/config b/.tx/config index 42ffa6ffd..df73666fa 100644 --- a/.tx/config +++ b/.tx/config @@ -12,7 +12,7 @@ mode = developer [qbittorrent.qbittorrentdesktop_master] -source_file = src/icons/qBittorrent.desktop +source_file = dist/unix/qbittorrent.desktop source_lang = en type = DESKTOP minimum_perc = 23 diff --git a/dist/unix/CMakeLists.txt b/dist/unix/CMakeLists.txt index 654e1ce1c..edf0d9216 100644 --- a/dist/unix/CMakeLists.txt +++ b/dist/unix/CMakeLists.txt @@ -31,7 +31,7 @@ if (Qt5Widgets_FOUND) DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor FILES_MATCHING PATTERN "*.png") - install(FILES ${qBittorrent_SOURCE_DIR}/src/icons/qbittorrent.desktop + install(FILES qbittorrent.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications/ COMPONENT data) diff --git a/src/icons/qbittorrent.desktop b/dist/unix/qbittorrent.desktop similarity index 100% rename from src/icons/qbittorrent.desktop rename to dist/unix/qbittorrent.desktop diff --git a/unixconf.pri b/unixconf.pri index 3d8a85b56..3bb51975f 100644 --- a/unixconf.pri +++ b/unixconf.pri @@ -36,7 +36,7 @@ nogui:systemd { # Menu Icon !nogui { - menuicon.files = icons/qbittorrent.desktop + menuicon.files = dist/unix/qbittorrent.desktop menuicon.path = $$DATADIR/applications/ INSTALLS += menuicon From 5b7c089dd2fce88017fcdc5911801fc809175c0d Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 11 Jun 2018 17:49:58 +0800 Subject: [PATCH 4/4] Move qm_gen.pri --- qbittorrent.pro | 1 - src/app/CMakeLists.txt | 4 ++-- qm_gen.pri => src/lang/lang.pri | 8 ++++---- src/src.pro | 2 +- 4 files changed, 7 insertions(+), 8 deletions(-) rename qm_gen.pri => src/lang/lang.pri (64%) diff --git a/qbittorrent.pro b/qbittorrent.pro index 9f5de7d77..a7f2a137d 100644 --- a/qbittorrent.pro +++ b/qbittorrent.pro @@ -3,7 +3,6 @@ TEMPLATE = subdirs SUBDIRS += src include(version.pri) -include(qm_gen.pri) # Make target to create release tarball. Use 'make tarball' tarball.commands += rm -fR ../$${PROJECT_NAME}-$${PROJECT_VERSION}/ && diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt index 60139bca5..e01da6524 100644 --- a/src/app/CMakeLists.txt +++ b/src/app/CMakeLists.txt @@ -31,8 +31,8 @@ find_package(Qt5 COMPONENTS LinguistTools REQUIRED) qt5_add_translation(QBT_QM_FILES ${QBT_TS_FILES}) get_filename_component(_lang_qrc_src "${CMAKE_CURRENT_SOURCE_DIR}/../lang/lang.qrc" ABSOLUTE) -get_filename_component(_lang_qrc_dst "${CMAKE_CURRENT_BINARY_DIR}/../lang.qrc" ABSOLUTE) -get_filename_component(_lang_qrc_dst_dir "${CMAKE_CURRENT_BINARY_DIR}/../" ABSOLUTE) +get_filename_component(_lang_qrc_dst "${CMAKE_CURRENT_BINARY_DIR}/../lang/lang.qrc" ABSOLUTE) +get_filename_component(_lang_qrc_dst_dir "${CMAKE_CURRENT_BINARY_DIR}/../lang" ABSOLUTE) message(STATUS "copying ${_lang_qrc_src} -> ${_lang_qrc_dst}") file(COPY ${_lang_qrc_src} DESTINATION ${_lang_qrc_dst_dir}) diff --git a/qm_gen.pri b/src/lang/lang.pri similarity index 64% rename from qm_gen.pri rename to src/lang/lang.pri index 7d31a4c3c..e08a6a20a 100644 --- a/qm_gen.pri +++ b/src/lang/lang.pri @@ -1,5 +1,5 @@ -TS_IN = $$fromfile(src/src.pro,TRANSLATIONS) -TS_IN_NOEXT = $$replace(TS_IN,".ts","") +TRANSLATIONS += $$files(qbittorrent_*.ts) +TS_IN_NOEXT = $$replace(TRANSLATIONS,".ts","") isEmpty(QMAKE_LRELEASE) { win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\\lrelease.exe @@ -16,6 +16,6 @@ isEmpty(QMAKE_LRELEASE) { message("Building translations") for(L,TS_IN_NOEXT) { message("Processing $${L}") - system("$$QMAKE_LRELEASE -silent src/$${L}.ts -qm src/$${L}.qm") - !exists("src/$${L}.qm"):error("Building translations failed, cannot continue") + system("$$QMAKE_LRELEASE -silent $${L}.ts -qm $${L}.qm") + !exists("$${L}.qm"):error("Building translations failed, cannot continue") } diff --git a/src/src.pro b/src/src.pro index cd4200a09..283099632 100644 --- a/src/src.pro +++ b/src/src.pro @@ -78,6 +78,6 @@ RESOURCES += \ searchengine/searchengine.qrc # Translations -TRANSLATIONS += $$files(lang/qbittorrent_*.ts) +include(lang/lang.pri) DESTDIR = .