[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kexi] src/widget: Data source combo box: clear button handling not needed since 'clear' action is s
From: Jaroslaw Staniek <staniek () kde ! org>
Date: 2016-02-29 23:12:17
Message-ID: E1aaWzB-0000sv-8Z () scm ! kde ! org
[Download RAW message or body]
Git commit 0e2f182598fc945083b6d4bf4dd506d786394363 by Jaroslaw Staniek.
Committed on 29/02/2016 at 23:07.
Pushed by staniek into branch 'master'.
Data source combo box: clear button handling not needed since 'clear' actio=
n is supported inside of our combo box already
M +3 -10 src/widget/KexiDataSourceComboBox.cpp
M +1 -2 src/widget/KexiDataSourceComboBox.h
http://commits.kde.org/kexi/0e2f182598fc945083b6d4bf4dd506d786394363
diff --git a/src/widget/KexiDataSourceComboBox.cpp b/src/widget/KexiDataSou=
rceComboBox.cpp
index a098436..9947f82 100644
--- a/src/widget/KexiDataSourceComboBox.cpp
+++ b/src/widget/KexiDataSourceComboBox.cpp
@@ -1,5 +1,5 @@
/* This file is part of the KDE project
- Copyright (C) 2005-2010 Jaros=C5=82aw Staniek <staniek@kde.org>
+ Copyright (C) 2005-2016 Jaros=C5=82aw Staniek <staniek@kde.org>
=
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
@@ -274,15 +274,8 @@ void KexiDataSourceComboBox::slotActivated(int index)
=
void KexiDataSourceComboBox::slotTextChanged(const QString &text)
{
- if (text.isEmpty()) {
- slotClearButtonClicked();
- }
-}
-
-void KexiDataSourceComboBox::slotClearButtonClicked()
-{
- setCurrentIndex(0);
- slotActivated(0);
+ Q_UNUSED(text)
+ //! @todo This place may be useful when we alow to enter values not be=
ing on the list
}
=
QString KexiDataSourceComboBox::selectedPluginId() const
diff --git a/src/widget/KexiDataSourceComboBox.h b/src/widget/KexiDataSourc=
eComboBox.h
index 163c720..90de02c 100644
--- a/src/widget/KexiDataSourceComboBox.h
+++ b/src/widget/KexiDataSourceComboBox.h
@@ -1,5 +1,5 @@
/* This file is part of the KDE project
- Copyright (C) 2005-2010 Jaros=C5=82aw Staniek <staniek@kde.org>
+ Copyright (C) 2005-2016 Jaros=C5=82aw Staniek <staniek@kde.org>
=
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
@@ -80,7 +80,6 @@ protected Q_SLOTS:
void slotActivated(int index);
void slotReturnPressed(const QString & text);
void slotTextChanged(const QString &text);
- void slotClearButtonClicked();
=
protected:
virtual void focusOutEvent(QFocusEvent *e);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic