Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM Messagelib
Commits
f62897fa
Commit
f62897fa
authored
Nov 22, 2022
by
Laurent Montel
Browse files
Store lineedit place holder => when we create a new tab we have correct
text
parent
a471bd16
Pipeline
#272596
passed with stage
in 12 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
messagelist/src/pane.cpp
View file @
f62897fa
...
...
@@ -82,6 +82,7 @@ public:
QAction
*
mActivatePreviousTabAction
=
nullptr
;
QAction
*
mMoveTabLeftAction
=
nullptr
;
QAction
*
mMoveTabRightAction
=
nullptr
;
QString
mQuickSearchPlaceHolderMessage
;
bool
mPreferEmptyTab
=
false
;
int
mMaxTabCreated
=
0
;
};
...
...
@@ -479,10 +480,11 @@ void Pane::focusQuickSearch(const QString &selectedText)
void
Pane
::
setQuickSearchClickMessage
(
const
QString
&
msg
)
{
d
->
mQuickSearchPlaceHolderMessage
=
msg
;
for
(
int
i
=
0
;
i
<
count
();
++
i
)
{
auto
w
=
qobject_cast
<
Widget
*>
(
widget
(
i
));
if
(
w
)
{
w
->
setQuickSearchClickMessage
(
msg
);
w
->
setQuickSearchClickMessage
(
d
->
mQuickSearchPlaceHolderMessage
);
}
}
}
...
...
@@ -797,7 +799,9 @@ QItemSelectionModel *Pane::createNewTab()
w
->
setXmlGuiClient
(
d
->
mXmlGuiClient
);
addTab
(
w
,
i18nc
(
"@title:tab Empty messagelist"
,
"Empty"
));
if
(
!
d
->
mQuickSearchPlaceHolderMessage
.
isEmpty
())
{
w
->
setQuickSearchClickMessage
(
d
->
mQuickSearchPlaceHolderMessage
);
}
if
(
d
->
mXmlGuiClient
&&
count
()
<
10
)
{
if
(
d
->
mMaxTabCreated
<
count
())
{
d
->
mMaxTabCreated
=
count
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment