slight styling enhancements for panes
[case] / src / addressbar.cpp
index e0145a4..83bccd0 100644 (file)
@@ -1,5 +1,5 @@
 // case - file manager for N900
-// Copyright (C) 2010 Lukas Hrazky
+// Copyright (C) 2010 Lukas Hrazky <lukkash@email.cz>
 // 
 // This program is free software: you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
 
 #include "addressbar.h"
 
+#include "utils.h"
+
 
 AddressBar::AddressBar(QWidget *parent) : QLineEdit(parent) {
     setMaximumHeight(60);
-    setContentsMargins(-4, -4, -4, -4);
+    setContentsMargins(-2, -4, -2, -5);
 
     connect(this, SIGNAL(returnPressed()), this, SLOT(returnPressed()));
 }
 
 
+void AddressBar::setText(const QString &text) {
+    QLineEdit::setText(shortenPath(text));
+}
+
+
 void AddressBar::mousePressEvent(QMouseEvent *event) {
     emit mousePressed();
     QLineEdit::mousePressEvent(event);