Changeset View
Changeset View
Standalone View
Standalone View
src/view/katestatusbar.cpp
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Line(s) | 63 | { | |||
---|---|---|---|---|---|
91 | */ | 91 | */ | ||
92 | m_wordCountLabel = new QLabel(this); | 92 | m_wordCountLabel = new QLabel(this); | ||
93 | topLayout->addWidget(m_wordCountLabel, 0); | 93 | topLayout->addWidget(m_wordCountLabel, 0); | ||
94 | m_wordCountLabel->setAlignment(Qt::AlignVCenter | Qt::AlignLeft); | 94 | m_wordCountLabel->setAlignment(Qt::AlignVCenter | Qt::AlignLeft); | ||
95 | m_wordCountLabel->setFocusProxy(m_view); | 95 | m_wordCountLabel->setFocusProxy(m_view); | ||
96 | m_wordCountLabel->setWhatsThis(i18n("Words and Chars count in document/selection.")); | 96 | m_wordCountLabel->setWhatsThis(i18n("Words and Chars count in document/selection.")); | ||
97 | m_wordCountLabel->hide(); | 97 | m_wordCountLabel->hide(); | ||
98 | 98 | | |||
99 | // Separate the status line in a left and right part | ||||
100 | topLayout->addStretch(1); | ||||
101 | | ||||
99 | /** | 102 | /** | ||
100 | * show the current mode, like INSERT, OVERWRITE, VI + modifiers like [BLOCK] | 103 | * show the current mode, like INSERT, OVERWRITE, VI + modifiers like [BLOCK] | ||
101 | */ | 104 | */ | ||
102 | m_insertModeLabel = new QLabel(this); | 105 | m_insertModeLabel = new QLabel(this); | ||
103 | m_insertModeLabel->installEventFilter(this); // register for mouse click | 106 | m_insertModeLabel->installEventFilter(this); // register for mouse click | ||
104 | topLayout->addWidget(m_insertModeLabel, 1000 /* this one should stretch */); | 107 | topLayout->addWidget(m_insertModeLabel); | ||
105 | m_insertModeLabel->setAlignment(Qt::AlignVCenter | Qt::AlignRight); | 108 | m_insertModeLabel->setAlignment(Qt::AlignVCenter | Qt::AlignRight); | ||
106 | m_insertModeLabel->setFocusProxy(m_view); | 109 | m_insertModeLabel->setFocusProxy(m_view); | ||
107 | m_insertModeLabel->setWhatsThis(i18n("Insert mode and VI input mode indicator. Click to change the mode.")); | 110 | m_insertModeLabel->setWhatsThis(i18n("Insert mode and VI input mode indicator. Click to change the mode.")); | ||
108 | 111 | | |||
109 | /** | 112 | /** | ||
110 | * allow to change indentation configuration | 113 | * allow to change indentation configuration | ||
111 | */ | 114 | */ | ||
112 | m_spacesOnly = ki18n("Soft Tabs: %1"); | 115 | m_spacesOnly = ki18n("Soft Tabs: %1"); | ||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |