-
-
Notifications
You must be signed in to change notification settings - Fork 571
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#5083 Improved cell editing behavior, so entering edition with Enter …
…key or mouse Double-Click no longer preselects whole value.
- Loading branch information
1 parent
3a28f63
commit 2aeadaa
Showing
10 changed files
with
84 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
SQLiteStudio3/guiSQLiteStudio/datagrid/sqlqueryitemlineedit.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#include "sqlqueryitemlineedit.h" | ||
|
||
SqlQueryItemLineEdit::SqlQueryItemLineEdit(bool shouldSkipInitialSelection, QWidget *parent) | ||
: QLineEdit{parent}, shouldSkipInitialSelection(shouldSkipInitialSelection) | ||
{ | ||
|
||
} | ||
|
||
void SqlQueryItemLineEdit::focusInEvent(QFocusEvent* e) | ||
{ | ||
QLineEdit::focusInEvent(e); | ||
if (shouldSkipInitialSelection) | ||
deselect(); | ||
} |
20 changes: 20 additions & 0 deletions
20
SQLiteStudio3/guiSQLiteStudio/datagrid/sqlqueryitemlineedit.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#ifndef SQLQUERYITEMLINEEDIT_H | ||
#define SQLQUERYITEMLINEEDIT_H | ||
|
||
#include <QLineEdit> | ||
|
||
class SqlQueryItemLineEdit : public QLineEdit | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit SqlQueryItemLineEdit(bool shouldSkipInitialSelection, QWidget *parent = nullptr); | ||
|
||
protected: | ||
void focusInEvent(QFocusEvent *e); | ||
|
||
private: | ||
bool shouldSkipInitialSelection; | ||
}; | ||
|
||
#endif // SQLQUERYITEMLINEEDIT_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters