mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Corrected indentation, added license/copyright
Signed-off-by: Maximilian Güntner <maximilian.guentner@gmail.com>
This commit is contained in:
parent
04cdfce782
commit
5d93242b34
2 changed files with 93 additions and 82 deletions
|
@ -1,4 +1,12 @@
|
||||||
/*
|
/*
|
||||||
|
* Copyright (c) 2013 Maximilian Güntner <maximilian.guentner@gmail.com>
|
||||||
|
*
|
||||||
|
* This file is subject to the terms and conditions of version 2 of
|
||||||
|
* the GNU General Public License. See the file gpl-2.0.txt in the main
|
||||||
|
* directory of this archive for more details.
|
||||||
|
*
|
||||||
|
* Original License:
|
||||||
|
*
|
||||||
* This file is part of the Nepomuk widgets collection
|
* This file is part of the Nepomuk widgets collection
|
||||||
* Copyright (c) 2013 Denis Steckelmacher <steckdenis@yahoo.fr>
|
* Copyright (c) 2013 Denis Steckelmacher <steckdenis@yahoo.fr>
|
||||||
*
|
*
|
||||||
|
@ -34,8 +42,7 @@
|
||||||
#include <QtGui/QColor>
|
#include <QtGui/QColor>
|
||||||
#include <QtGui/QPalette>
|
#include <QtGui/QPalette>
|
||||||
|
|
||||||
struct GroupedLineEdit::Private
|
struct GroupedLineEdit::Private {
|
||||||
{
|
|
||||||
struct Block {
|
struct Block {
|
||||||
int start;
|
int start;
|
||||||
int end;
|
int end;
|
||||||
|
@ -108,9 +115,7 @@ QStringList GroupedLineEdit::getBlockStringList()
|
||||||
void GroupedLineEdit::setCursorPosition(int position)
|
void GroupedLineEdit::setCursorPosition(int position)
|
||||||
{
|
{
|
||||||
QTextCursor c = textCursor();
|
QTextCursor c = textCursor();
|
||||||
|
|
||||||
c.setPosition(position, QTextCursor::MoveAnchor);
|
c.setPosition(position, QTextCursor::MoveAnchor);
|
||||||
|
|
||||||
setTextCursor(c);
|
setTextCursor(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -165,7 +170,6 @@ void GroupedLineEdit::keyPressEvent(QKeyEvent *e)
|
||||||
emit editingFinished();
|
emit editingFinished();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
QPlainTextEdit::keyPressEvent(e);
|
QPlainTextEdit::keyPressEvent(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,11 @@
|
||||||
/* Original License:
|
/*
|
||||||
|
* Copyright (c) 2013 Maximilian Güntner <maximilian.guentner@gmail.com>
|
||||||
|
*
|
||||||
|
* This file is subject to the terms and conditions of version 2 of
|
||||||
|
* the GNU General Public License. See the file gpl-2.0.txt in the main
|
||||||
|
* directory of this archive for more details.
|
||||||
|
*
|
||||||
|
* Original License:
|
||||||
*
|
*
|
||||||
* This file is part of the Nepomuk widgets collection
|
* This file is part of the Nepomuk widgets collection
|
||||||
* Copyright (c) 2013 Denis Steckelmacher <steckdenis@yahoo.fr>
|
* Copyright (c) 2013 Denis Steckelmacher <steckdenis@yahoo.fr>
|
||||||
|
|
Loading…
Add table
Reference in a new issue