]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/dolphinremoteencoding.h
Modernize: Use override where possible
[dolphin.git] / src / views / dolphinremoteencoding.h
index 54499f78b175db15ce1620d985e7b2d7225e013f..ca1cea2c7fbc7ab6c1096e707b65d22bed236f80 100644 (file)
 #define DOLPHINREMOTEENCODING_H
 
 #include <QStringList>
-#include <QtGui/QAction>
-#include <kurl.h>
-#include "libdolphin_export.h"
+#include <QAction>
+#include <QUrl>
+#include "dolphin_export.h"
 
 
 class KActionMenu;
 class DolphinViewActionHandler;
 
 /**
- * @brief Allows to chnage character encoding for remote urls like ftp.
+ * @brief Allows to change character encoding for remote urls like ftp.
  *
  * When browsing remote url, its possible to change encoding from Tools Menu.
  */
 
-class LIBDOLPHINPRIVATE_EXPORT DolphinRemoteEncoding: public QObject
+class DOLPHIN_EXPORT DolphinRemoteEncoding: public QObject
 {
   Q_OBJECT
 public:
   DolphinRemoteEncoding(QObject* parent, DolphinViewActionHandler* actionHandler);
-  ~DolphinRemoteEncoding();
+  ~DolphinRemoteEncoding() override;
 
 public Q_SLOTS:
   void slotAboutToOpenUrl();
   void slotItemSelected(QAction* action);
   void slotReload();
   void slotDefault();
-  
+
 private Q_SLOTS:
   void slotAboutToShow();
-  
+
 private:
   void updateView();
   void loadSettings();
@@ -59,7 +59,7 @@ private:
 
   KActionMenu* m_menu;
   QStringList m_encodingDescriptions;
-  KUrl m_currentURL;
+  QUrl m_currentURL;
   DolphinViewActionHandler* m_actionHandler;
 
   bool m_loaded;