summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qlinecontrol_p.h
diff options
context:
space:
mode:
authorMarius Bugge Monsen <mmonsen@trolltech.com>2009-07-14 14:34:13 (GMT)
committerMarius Bugge Monsen <mmonsen@trolltech.com>2009-07-14 14:34:13 (GMT)
commit4a2e73a06eb9cba373f9662700883bd3bd7f5047 (patch)
tree5e6273f08dd5419984edf0ae3fbe80cc6d3d6f5e /src/gui/widgets/qlinecontrol_p.h
parentaec21d2255e9927689e640b36150b7c9a4e9f522 (diff)
downloadQt-4a2e73a06eb9cba373f9662700883bd3bd7f5047.zip
Qt-4a2e73a06eb9cba373f9662700883bd3bd7f5047.tar.gz
Qt-4a2e73a06eb9cba373f9662700883bd3bd7f5047.tar.bz2
Rename the p_foo() functions in QLineControl to internalFoo().
Diffstat (limited to 'src/gui/widgets/qlinecontrol_p.h')
-rw-r--r--src/gui/widgets/qlinecontrol_p.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/gui/widgets/qlinecontrol_p.h b/src/gui/widgets/qlinecontrol_p.h
index 6029989..68ff66b 100644
--- a/src/gui/widgets/qlinecontrol_p.h
+++ b/src/gui/widgets/qlinecontrol_p.h
@@ -235,21 +235,21 @@ public:
private:
void init(const QString &txt);
void removeSelectedText();
- void p_setText(const QString &txt, int pos = -1, bool edited = true);
+ void internalSetText(const QString &txt, int pos = -1, bool edited = true);
void updateDisplayText();
- void p_insert(const QString &s);
- void p_del(bool wasBackspace = false);
- void p_remove(int pos);
+ void internalInsert(const QString &s);
+ void internalDelete(bool wasBackspace = false);
+ void internalRemove(int pos);
- inline void p_deselect()
+ inline void internalDeselect()
{
m_selDirty |= (m_selend > m_selstart);
m_selstart = m_selend = 0;
}
- void p_undo(int until = -1);
- void p_redo();
+ void internalUndo(int until = -1);
+ void internalRedo();
QString m_text;
QPalette m_palette;
@@ -297,7 +297,6 @@ private:
QChar m_blank;
MaskInputData *m_maskData;
-
// undo/redo handling
enum CommandType { Separator, Insert, Remove, Delete, RemoveSelection, DeleteSelection, SetSelection };
struct Command {
@@ -558,7 +557,7 @@ inline QString QLineControl::text() const
inline void QLineControl::setText(const QString &txt)
{
- p_setText(txt, -1, false);
+ internalSetText(txt, -1, false);
}
inline QString QLineControl::displayText() const
@@ -568,7 +567,7 @@ inline QString QLineControl::displayText() const
inline void QLineControl::deselect()
{
- p_deselect();
+ internalDeselect();
finishChange();
}
@@ -580,13 +579,13 @@ inline void QLineControl::selectAll()
inline void QLineControl::undo()
{
- p_undo();
+ internalUndo();
finishChange(-1, true);
}
inline void QLineControl::redo()
{
- p_redo();
+ internalRedo();
finishChange();
}