summaryrefslogtreecommitdiff
path: root/src/designer/src/components
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@theqtcompany.com>2016-04-06 12:42:27 +0200
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2016-04-06 12:42:51 +0200
commit887f86794c24c6e80cf49a2687b669d7530a1944 (patch)
tree9d08458d66b9621faf2d877879b5e3aa8faa30af /src/designer/src/components
parent790f59646d80e3b05d03aa8d3e2d9cc52eef68b9 (diff)
parentcf9129f19fb180d24f217897cc660ea7c6861e87 (diff)
downloadqttools-887f86794c24c6e80cf49a2687b669d7530a1944.tar.gz
Merge remote-tracking branch 'origin/5.6' into 5.7
Change-Id: I06a1d65d1bcb0cdb0ae6e00e57283333aafbb673
Diffstat (limited to 'src/designer/src/components')
-rw-r--r--src/designer/src/components/formeditor/formwindowmanager.cpp29
-rw-r--r--src/designer/src/components/formeditor/images/cleartext.pngbin760 -> 474 bytes
-rw-r--r--src/designer/src/components/formeditor/images/mac/simplifyrichtext.pngbin1988 -> 1917 bytes
-rw-r--r--src/designer/src/components/formeditor/images/righttoleft.pngbin197 -> 131 bytes
4 files changed, 7 insertions, 22 deletions
diff --git a/src/designer/src/components/formeditor/formwindowmanager.cpp b/src/designer/src/components/formeditor/formwindowmanager.cpp
index 386d09f8e..000c9d52f 100644
--- a/src/designer/src/components/formeditor/formwindowmanager.cpp
+++ b/src/designer/src/components/formeditor/formwindowmanager.cpp
@@ -363,7 +363,8 @@ QWidget *FormWindowManager::findManagedWidget(FormWindow *fw, QWidget *w)
void FormWindowManager::setupActions()
{
#ifndef QT_NO_CLIPBOARD
- m_actionCut = new QAction(createIconSet(QStringLiteral("editcut.png")), tr("Cu&t"), this);
+ const QIcon cutIcon = QIcon::fromTheme(QStringLiteral("edit-cut"), createIconSet(QStringLiteral("editcut.png")));
+ m_actionCut = new QAction(cutIcon, tr("Cu&t"), this);
m_actionCut->setObjectName(QStringLiteral("__qt_cut_action"));
m_actionCut->setShortcut(QKeySequence::Cut);
m_actionCut->setStatusTip(tr("Cuts the selected widgets and puts them on the clipboard"));
@@ -371,7 +372,8 @@ void FormWindowManager::setupActions()
connect(m_actionCut, &QAction::triggered, this, &FormWindowManager::slotActionCutActivated);
m_actionCut->setEnabled(false);
- m_actionCopy = new QAction(createIconSet(QStringLiteral("editcopy.png")), tr("&Copy"), this);
+ const QIcon copyIcon = QIcon::fromTheme(QStringLiteral("edit-copy"), createIconSet(QStringLiteral("editcopy.png")));
+ m_actionCopy = new QAction(copyIcon, tr("&Copy"), this);
m_actionCopy->setObjectName(QStringLiteral("__qt_copy_action"));
m_actionCopy->setShortcut(QKeySequence::Copy);
m_actionCopy->setStatusTip(tr("Copies the selected widgets to the clipboard"));
@@ -379,7 +381,8 @@ void FormWindowManager::setupActions()
connect(m_actionCopy, &QAction::triggered, this, &FormWindowManager::slotActionCopyActivated);
m_actionCopy->setEnabled(false);
- m_actionPaste = new QAction(createIconSet(QStringLiteral("editpaste.png")), tr("&Paste"), this);
+ const QIcon pasteIcon = QIcon::fromTheme(QStringLiteral("edit-paste"), createIconSet(QStringLiteral("editpaste.png")));
+ m_actionPaste = new QAction(pasteIcon, tr("&Paste"), this);
m_actionPaste->setObjectName(QStringLiteral("__qt_paste_action"));
m_actionPaste->setShortcut(QKeySequence::Paste);
m_actionPaste->setStatusTip(tr("Pastes the clipboard's contents"));
@@ -388,7 +391,7 @@ void FormWindowManager::setupActions()
m_actionPaste->setEnabled(false);
#endif
- m_actionDelete = new QAction(tr("&Delete"), this);
+ m_actionDelete = new QAction(QIcon::fromTheme(QStringLiteral("edit-delete")), tr("&Delete"), this);
m_actionDelete->setObjectName(QStringLiteral("__qt_delete_action"));
m_actionDelete->setStatusTip(tr("Deletes the selected widgets"));
m_actionDelete->setWhatsThis(whatsThisFrom(QStringLiteral("Edit|Delete")));
@@ -523,24 +526,6 @@ void FormWindowManager::setupActions()
connect(m_actionShowFormWindowSettingsDialog, &QAction::triggered,
this, &FormWindowManager::slotActionShowFormWindowSettingsDialog);
m_actionShowFormWindowSettingsDialog->setEnabled(false);
-
-#if defined (Q_OS_UNIX) && !defined(Q_OS_MAC)
-#ifndef QT_NO_CLIPBOARD
- m_actionCopy->setIcon(QIcon::fromTheme(QStringLiteral("edit-copy"), m_actionCopy->icon()));
- m_actionCut->setIcon(QIcon::fromTheme(QStringLiteral("edit-cut"), m_actionCut->icon()));
- m_actionPaste->setIcon(QIcon::fromTheme(QStringLiteral("edit-paste"), m_actionPaste->icon()));
-#endif
- m_actionDelete->setIcon(QIcon::fromTheme(QStringLiteral("edit-delete"), m_actionDelete->icon()));
-
- // These do not currently exist, but will allow theme authors to fill in the gaps
- m_actionBreakLayout->setIcon(QIcon::fromTheme(QStringLiteral("designer-break-layout"), m_actionBreakLayout->icon()));
- m_actionGridLayout->setIcon(QIcon::fromTheme(QStringLiteral("designer-grid-layout"), m_actionGridLayout->icon()));
- m_actionHorizontalLayout->setIcon(QIcon::fromTheme(QStringLiteral("designer-horizontal-layout"), m_actionHorizontalLayout->icon()));
- m_actionVerticalLayout->setIcon(QIcon::fromTheme(QStringLiteral("designer-vertical-layout"), m_actionVerticalLayout->icon()));
- m_actionSplitHorizontal->setIcon(QIcon::fromTheme(QStringLiteral("designer-split-horizontal"), m_actionSplitHorizontal->icon()));
- m_actionSplitVertical->setIcon(QIcon::fromTheme(QStringLiteral("designer-split-vertical"), m_actionSplitVertical->icon()));
- m_actionAdjustSize->setIcon(QIcon::fromTheme(QStringLiteral("designer-adjust-size"), m_actionAdjustSize->icon()));
-#endif
}
#ifndef QT_NO_CLIPBOARD
diff --git a/src/designer/src/components/formeditor/images/cleartext.png b/src/designer/src/components/formeditor/images/cleartext.png
index 74133baff..4c7bb13f3 100644
--- a/src/designer/src/components/formeditor/images/cleartext.png
+++ b/src/designer/src/components/formeditor/images/cleartext.png
Binary files differ
diff --git a/src/designer/src/components/formeditor/images/mac/simplifyrichtext.png b/src/designer/src/components/formeditor/images/mac/simplifyrichtext.png
index a48e974bf..cdfc086bb 100644
--- a/src/designer/src/components/formeditor/images/mac/simplifyrichtext.png
+++ b/src/designer/src/components/formeditor/images/mac/simplifyrichtext.png
Binary files differ
diff --git a/src/designer/src/components/formeditor/images/righttoleft.png b/src/designer/src/components/formeditor/images/righttoleft.png
index 26a69d5ba..759066479 100644
--- a/src/designer/src/components/formeditor/images/righttoleft.png
+++ b/src/designer/src/components/formeditor/images/righttoleft.png
Binary files differ