Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
2480eae3
Commit
2480eae3
authored
Jan 10, 2021
by
Kåre Särs
Browse files
Remove the TreeWidget
Still some FIXMEs to fix
parent
f09ef161
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
addons/search/plugin_search.cpp
View file @
2480eae3
This diff is collapsed.
Click to expand it.
addons/search/plugin_search.h
View file @
2480eae3
...
...
@@ -113,9 +113,7 @@ public Q_SLOTS:
void
setCurrentFolder
();
void
setSearchPlace
(
int
place
);
void
goToNextMatch
();
void
goToNextMatch2
();
void
goToPreviousMatch
();
void
goToPreviousMatch2
();
private:
enum
CopyResultType
{
AllExpanded
,
All
};
...
...
@@ -145,10 +143,7 @@ private Q_SLOTS:
void
searchWhileTypingDone
();
void
indicateMatch
(
bool
hasMatch
);
void
searching
(
const
QString
&
file
);
void
itemSelected
(
QTreeWidgetItem
*
item
);
void
itemSelected2
(
const
QModelIndex
&
item
);
void
itemSelected
(
const
QModelIndex
&
item
);
void
clearMarks
();
void
clearDocMarks
(
KTextEditor
::
Document
*
doc
);
...
...
@@ -158,14 +153,12 @@ private Q_SLOTS:
void
replaceDone
();
void
docViewChanged
();
void
updateMatchMarks
();
void
resultTabChanged
(
int
index
);
void
expandResults
();
void
updateResultsRootItem
();
/**
* keep track if the project plugin is alive and if the project file did change
*/
...
...
@@ -178,7 +171,6 @@ private Q_SLOTS:
protected:
bool
eventFilter
(
QObject
*
obj
,
QEvent
*
ev
)
override
;
void
addHeaderItem
();
private:
void
addMatchesToRootFileItem
(
const
QUrl
&
url
,
const
QList
<
QTreeWidgetItem
*>
&
matchItems
);
...
...
@@ -208,7 +200,6 @@ private:
QString
m_resultBaseDir
;
QList
<
KTextEditor
::
MovingRange
*>
m_matchRanges
;
QTimer
m_changeTimer
;
QTimer
m_updateSumaryTimer
;
QPointer
<
KTextEditor
::
Message
>
m_infoMessage
;
QBrush
m_searchBackgroundColor
;
QBrush
m_foregroundColor
;
...
...
addons/search/results.ui
View file @
2480eae3
...
...
@@ -23,27 +23,6 @@
<property
name=
"bottomMargin"
>
<number>
0
</number>
</property>
<item>
<widget
class=
"QTreeWidget"
name=
"tree"
>
<property
name=
"uniformRowHeights"
>
<bool>
true
</bool>
</property>
<property
name=
"allColumnsShowFocus"
>
<bool>
true
</bool>
</property>
<property
name=
"headerHidden"
>
<bool>
true
</bool>
</property>
<attribute
name=
"headerStretchLastSection"
>
<bool>
false
</bool>
</attribute>
<column>
<property
name=
"text"
>
<string
notr=
"true"
>
1
</string>
</property>
</column>
</widget>
</item>
<item>
<widget
class=
"QTreeView"
name=
"treeView"
>
<property
name=
"uniformRowHeights"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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