From 8757b3edd1d438ef1bf522d099d8a79b68a28a4c Mon Sep 17 00:00:00 2001 From: Capostrophic Date: Sun, 28 Oct 2018 20:44:03 +0300 Subject: [PATCH] Add icons for Edit and Touch actions (kudos to akortunov) --- apps/opencs/view/world/table.cpp | 2 ++ files/opencs/record-edit.png | Bin 0 -> 220 bytes files/opencs/record-touch.png | Bin 0 -> 289 bytes files/opencs/resources.qrc | 2 ++ 4 files changed, 4 insertions(+) create mode 100644 files/opencs/record-edit.png create mode 100644 files/opencs/record-touch.png diff --git a/apps/opencs/view/world/table.cpp b/apps/opencs/view/world/table.cpp index f625fbe8d..14df4658d 100644 --- a/apps/opencs/view/world/table.cpp +++ b/apps/opencs/view/world/table.cpp @@ -292,6 +292,7 @@ CSVWorld::Table::Table (const CSMWorld::UniversalId& id, mEditAction = new QAction (tr ("Edit Record"), this); connect (mEditAction, SIGNAL (triggered()), this, SLOT (editRecord())); + mEditAction->setIcon(QIcon(":edit-edit")); addAction (mEditAction); CSMPrefs::Shortcut* editShortcut = new CSMPrefs::Shortcut("table-edit", this); editShortcut->associateAction(mEditAction); @@ -317,6 +318,7 @@ CSVWorld::Table::Table (const CSMWorld::UniversalId& id, { mTouchAction = new QAction(tr("Touch Record"), this); connect(mTouchAction, SIGNAL(triggered()), this, SLOT(touchRecord())); + mTouchAction->setIcon(QIcon(":edit-touch")); addAction(mTouchAction); CSMPrefs::Shortcut* touchShortcut = new CSMPrefs::Shortcut("table-touch", this); touchShortcut->associateAction(mTouchAction); diff --git a/files/opencs/record-edit.png b/files/opencs/record-edit.png new file mode 100644 index 0000000000000000000000000000000000000000..8b94e163410880ebd3efbeb68b3aa23e595d2c65 GIT binary patch literal 220 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf67JIrlhG?8mPEcTwkd%;+`18+M zl81-q|HO#dKz@Y69AAULw*Lit|NRHa&fti2+{NUk5t6#=+QaYj4>GoMYWeW2EjKeX z`0+OVpyuBr?{BDSi`uizFn>6SN6Sa+Ezixm|B{PEE!@CU zBv}dg!@$fxGe5Jl3>zXWow}|Qgb-FXq?AD0w%-ev0ww6yZf*L6{}V{jEJd?F38ZM4 zqTL+!vbjHR_fj-0nP7}biZ0PdKl_uM`%+wiGu)x+a1GvZv37z`dBh>+9eR#~Precord-preview.png record-clone.png record-add.png + record-edit.png + record-touch.png record-revert.png resources-icon.png resources-mesh.png