diff --git a/resources/text/CHANGELOG b/resources/text/CHANGELOG
index 3a36cb6b0..576e5e705 100644
--- a/resources/text/CHANGELOG
+++ b/resources/text/CHANGELOG
@@ -3,6 +3,7 @@
Fixed:
+- List of actions in toolbar editor now do not allow copying of items.
- Keyboard search for message list should now work with Qt 4.
- Overall code cleanups and refactoring primarily in area of feed/message models and recycle bin functionality.
- Fixed bug #66, #67, #69, #64.
diff --git a/src/gui/formsettings.cpp b/src/gui/formsettings.cpp
index 1f2acc3eb..b642ba03e 100755
--- a/src/gui/formsettings.cpp
+++ b/src/gui/formsettings.cpp
@@ -45,6 +45,7 @@
#include
#include
#include
+#include
FormSettings::FormSettings(QWidget *parent) : QDialog(parent), m_ui(new Ui::FormSettings) {
@@ -54,6 +55,11 @@ FormSettings::FormSettings(QWidget *parent) : QDialog(parent), m_ui(new Ui::Form
setWindowFlags(Qt::MSWindowsFixedSizeDialogHint | Qt::Dialog | Qt::WindowSystemMenuHint | Qt::WindowTitleHint);
setWindowIcon(qApp->icons()->fromTheme("application-settings"));
+ m_ui->m_editorMessagesToolbar->activeItemsWidget()->viewport()->installEventFilter(this);
+ m_ui->m_editorFeedsToolbar->activeItemsWidget()->viewport()->installEventFilter(this);
+ m_ui->m_editorMessagesToolbar->availableItemsWidget()->viewport()->installEventFilter(this);
+ m_ui->m_editorFeedsToolbar->availableItemsWidget()->viewport()->installEventFilter(this);
+
#if !defined(Q_OS_WIN)
MessageBox::iconify(m_ui->m_buttonBox);
#endif
@@ -784,3 +790,18 @@ void FormSettings::saveInterface() {
qApp->mainForm()->tabWidget()->checkTabBarVisibility();
qApp->mainForm()->tabWidget()->feedMessageViewer()->refreshVisualProperties();
}
+
+
+bool FormSettings::eventFilter(QObject *obj, QEvent *e) {
+ Q_UNUSED(obj)
+
+ if (e->type() == QEvent::Drop) {
+ QDropEvent *drop_event = static_cast(e);
+
+ if (drop_event->keyboardModifiers() != Qt::NoModifier) {
+ drop_event->setDropAction(Qt::MoveAction);
+ }
+ }
+
+ return false;
+}
diff --git a/src/gui/formsettings.h b/src/gui/formsettings.h
index f49d8747f..c64eb2d3d 100644
--- a/src/gui/formsettings.h
+++ b/src/gui/formsettings.h
@@ -49,6 +49,8 @@ class FormSettings : public QDialog {
// Does check of controls before dialog can be submitted.
bool doSaveCheck();
+ bool eventFilter(QObject *obj, QEvent *e);
+
protected slots:
// Displays "restart" dialog if some critical settings changed.
void promptForRestart();
@@ -97,4 +99,6 @@ class FormSettings : public QDialog {
QStringList m_changedDataTexts;
};
+
+
#endif // FORMSETTINGS_H
diff --git a/src/gui/formsettings.ui b/src/gui/formsettings.ui
index feff44928..8567b24df 100644
--- a/src/gui/formsettings.ui
+++ b/src/gui/formsettings.ui
@@ -14,10 +14,86 @@
Settings
+ -
+
+
+
+ 220
+ 0
+
+
+
+
+ 220
+ 16777215
+
+
+
+ false
+
+
+ false
+
+
+ QListView::Static
+
+
+ false
+
+
+ -1
+
+
-
+
+ General
+
+
+ -
+
+ Data storage
+
+
+ -
+
+ Keyboard shortcuts
+
+
+ -
+
+ User interface
+
+
+ -
+
+ Language
+
+
+ -
+
+ Web browser & proxy
+
+
+ -
+
+ Feeds & messages
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QDialogButtonBox::Cancel|QDialogButtonBox::Ok
+
+
+
-
- 3
+ 0
@@ -353,7 +429,7 @@ Authors of this application are NOT responsible for lost data.
QTabWidget::North
- 0
+ 3
@@ -1201,82 +1277,6 @@ Authors of this application are NOT responsible for lost data.
- -
-
-
- Qt::Horizontal
-
-
- QDialogButtonBox::Cancel|QDialogButtonBox::Ok
-
-
-
- -
-
-
-
- 220
- 0
-
-
-
-
- 220
- 16777215
-
-
-
- false
-
-
- false
-
-
- QListView::Static
-
-
- false
-
-
- -1
-
-
-
-
- General
-
-
- -
-
- Data storage
-
-
- -
-
- Keyboard shortcuts
-
-
- -
-
- User interface
-
-
- -
-
- Language
-
-
- -
-
- Web browser & proxy
-
-
- -
-
- Feeds & messages
-
-
-
-
diff --git a/src/gui/toolbareditor.h b/src/gui/toolbareditor.h
index 0042935c4..34e169ac2 100644
--- a/src/gui/toolbareditor.h
+++ b/src/gui/toolbareditor.h
@@ -41,6 +41,14 @@ class ToolBarEditor : public QWidget {
void loadFromToolBar(BaseToolBar *tool_bar);
void saveToolBar();
+ inline QListWidget *activeItemsWidget() {
+ return m_ui->m_listActivatedActions;
+ }
+
+ inline QListWidget *availableItemsWidget() {
+ return m_ui->m_listAvailableActions;
+ }
+
private slots:
// Insert common controls.
void insertSpacer();