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
System
Dolphin
Commits
e63b1de2
Commit
e63b1de2
authored
Mar 19, 2015
by
Yuri Chornoivan
Browse files
Fix some EBN issues
parent
a7484d2c
Changes
7
Hide whitespace changes
Inline
Side-by-side
src/kitemviews/kfileitemlistview.cpp
View file @
e63b1de2
...
...
@@ -41,7 +41,7 @@ namespace {
// If the icon size changes, a longer delay is used. This prevents that
// the expensive re-generation of all previews is triggered repeatedly when
// chaning the zoom level.
// chan
g
ing the zoom level.
const
int
LongInterval
=
300
;
}
...
...
src/kitemviews/kitemlistview.cpp
View file @
e63b1de2
...
...
@@ -1121,7 +1121,7 @@ void KItemListView::slotItemsRemoved(const KItemRangeList& itemRanges)
const
int
firstRemovedIndex
=
index
;
const
int
lastRemovedIndex
=
index
+
count
-
1
;
// Remeber which items have to be moved because they are behind the removed range.
// Reme
m
ber which items have to be moved because they are behind the removed range.
QVector
<
int
>
itemsToMove
;
// Remove all KItemListWidget instances that got deleted
...
...
@@ -2437,7 +2437,7 @@ int KItemListView::showDropIndicator(const QPointF& pos)
if
(
mappedPos
.
y
()
>=
0
&&
mappedPos
.
y
()
<=
rect
.
height
())
{
if
(
m_model
->
supportsDropping
(
widget
->
index
()))
{
// Keep 30% of the rectangle as the gap instead of always having a fixed gap
const
int
gap
=
qMax
(
4.0
,
0.3
*
rect
.
height
());
const
int
gap
=
qMax
(
qreal
(
4.0
)
,
qreal
(
0.3
)
*
rect
.
height
());
if
(
mappedPos
.
y
()
>=
gap
&&
mappedPos
.
y
()
<=
rect
.
height
()
-
gap
)
{
return
-
1
;
}
...
...
src/kitemviews/kitemlistview.h
View file @
e63b1de2
...
...
@@ -642,7 +642,7 @@ private:
/**
* Shows a drop-indicator between items dependent on the given
* cursor position. The cursor position is relative t
he
the upper left
* cursor position. The cursor position is relative t
o
the upper left
* edge of the view.
* @return Index of the item where the dropping is done. An index of -1
* indicates that the item has been dropped after the last item.
...
...
src/kitemviews/private/kdirectorycontentscounter.h
View file @
e63b1de2
...
...
@@ -89,4 +89,4 @@ private:
// to get all watched directories.
};
#endif
\ No newline at end of file
#endif
src/settings/general/configurepreviewplugindialog.cpp
View file @
e63b1de2
...
...
@@ -81,4 +81,4 @@ ConfigurePreviewPluginDialog::ConfigurePreviewPluginDialog(const QString& plugin
auto
okButton
=
buttonBox
->
button
(
QDialogButtonBox
::
Ok
);
okButton
->
setShortcut
(
Qt
::
CTRL
|
Qt
::
Key_Return
);
okButton
->
setDefault
(
true
);
}
\ No newline at end of file
}
src/settings/startup/startupsettingspage.cpp
View file @
e63b1de2
...
...
@@ -34,7 +34,6 @@
#include <QLabel>
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QFileDialog>
#include "views/dolphinview.h"
...
...
src/views/dolphinview.cpp
View file @
e63b1de2
...
...
@@ -54,7 +54,6 @@
#include <KIO/PasteJob>
#include <KIO/Paste>
#include <KJob>
#include <QMenu>
#include <KMessageBox>
#include <KJobWidgets>
#include <QUrl>
...
...
Write
Preview
Markdown
is supported
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