]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/urlbutton.h
Step 1 of 2 to fix the issue that reloading of a directory resets the contents positi...
[dolphin.git] / src / urlbutton.h
index c1833b290698c9a3beb093058ff3760adb278a76..a922ea0cd365a09abe50ff38e57a4ea6dda069a9 100644 (file)
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program; if not, write to the                         *
  *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA          *
  ***************************************************************************/
 
 #ifndef URLBUTTON_H
 #define URLBUTTON_H
 
-#include <qpushbutton.h>
-//Added by qt3to4:
 #include <QEvent>
+#include <QPushButton>
 
-class KURL;
-class URLNavigator;
+class KUrl;
+class UrlNavigator;
 class QPainter;
 
 /**
@@ -34,18 +33,16 @@ class QPainter;
  *
  * Each button of the URL navigator contains an URL, which
  * is set as soon as the button has been clicked.
-*
- * @author Peter Penz
  */
-class URLButton : public QPushButton
+class UrlButton : public QPushButton
 {
     Q_OBJECT
 
 public:
-    URLButton(URLNavigator* parent);
-    virtual ~URLButton();
+    explicit UrlButton(UrlNavigator* parent);
+    virtual ~UrlButton();
 
-    URLNavigator* urlNavigator() const;
+    UrlNavigator* urlNavigator() const { return m_urlNavigator; }
 
 protected:
     enum DisplayHint {
@@ -65,7 +62,7 @@ protected:
 
 private:
     int m_displayHint;
-    URLNavigator* m_urlNavigator;
+    UrlNavigator* m_urlNavigator;
 };
 
 #endif