]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix some EBN issues
authorYuri Chornoivan <yurchor@ukr.net>
Thu, 19 Mar 2015 18:13:40 +0000 (20:13 +0200)
committerYuri Chornoivan <yurchor@ukr.net>
Thu, 19 Mar 2015 18:13:40 +0000 (20:13 +0200)
src/kitemviews/kfileitemlistview.cpp
src/kitemviews/kitemlistview.cpp
src/kitemviews/kitemlistview.h
src/kitemviews/private/kdirectorycontentscounter.h
src/settings/general/configurepreviewplugindialog.cpp
src/settings/startup/startupsettingspage.cpp
src/views/dolphinview.cpp

index d249bef91b9e0314c585f08885306b272a43a9e3..d912a6c5c252f2fda1422683720ed3e542a5be4b 100644 (file)
@@ -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.
+    // changing the zoom level.
     const int LongInterval = 300;
 }
 
index 9416f0dd715e84a3fcd776ac8bf210858ccec803..df65399299ba30d48af59678d6b75f8bbb124478 100644 (file)
@@ -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.
+        // Remember 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;
                 }
index f201802893db75b50598e211f1a9902936b9ce35..9adf9f86f099a65a0a27e19271b60f49cbea4961 100644 (file)
@@ -642,7 +642,7 @@ private:
 
     /**
      * Shows a drop-indicator between items dependent on the given
-     * cursor position. The cursor position is relative the the upper left
+     * cursor position. The cursor position is relative to 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.
index c03d0249c159196ee0a980862f26a7d24f3977e2..988208e02788746a8d222068d25de64d587ac9d6 100644 (file)
@@ -89,4 +89,4 @@ private:
                                     // to get all watched directories.
 };
 
-#endif
\ No newline at end of file
+#endif
index 15cd9266722cbcd158ebf06a69357797c48cb61d..f0ac549848c1fff746d0b87646d81d3b0a028d5e 100644 (file)
@@ -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
+}
index 21b213cd52e83fd3bb6dc2e57bab4d09875e68e1..48d2a7b753b96e68ae0bdaea92150477be5880cb 100644 (file)
@@ -34,7 +34,6 @@
 #include <QLabel>
 #include <QPushButton>
 #include <QHBoxLayout>
-#include <QVBoxLayout>
 #include <QFileDialog>
 
 #include "views/dolphinview.h"
index 191cd65119f46ecbd4ae1116ba8eb376a742fbd7..d3023585aefa05a5a292fcbc6c0a9e9ef69e4e39 100644 (file)
@@ -54,7 +54,6 @@
 #include <KIO/PasteJob>
 #include <KIO/Paste>
 #include <KJob>
-#include <QMenu>
 #include <KMessageBox>
 #include <KJobWidgets>
 #include <QUrl>