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()));
}
fileOperator(new FileOperator(this))
{
QVBoxLayout *layout = new QVBoxLayout;
- layout->setContentsMargins(0, 0, 0, 0);
- layout->setSpacing(0);
+ layout->setContentsMargins(0, 1, 0, 0);
+ layout->setSpacing(1);
QHBoxLayout *paneLayout = new QHBoxLayout;
paneLayout->setContentsMargins(0, 0, 0, 0);
fileList(new FileList)
{
QVBoxLayout *layout = new QVBoxLayout;
- layout->setContentsMargins(3, 3, 3, 3);
+ layout->setContentsMargins(2, 1, 2, 2);
layout->setSpacing(0);
setLayout(layout);
QHBoxLayout *topLine = new QHBoxLayout;
location->setText(fileList->path());
- layout->setSpacing(0);
topLine->addWidget(location);
topLine->addWidget(up);
void Pane::paintEvent(QPaintEvent *) {
if (active) {
QPainter painter(this);
- painter.setPen(palette().color(QPalette::Highlight));
+ painter.setPen(palette().highlight().color());
QRect g = this->geometry();
- g.moveTo(1, 1);
- g.setWidth(g.width() - 3);
- g.setHeight(g.height() - 3);
- painter.drawRect(g);
+ g.moveTo(0, 0);
+ g.adjust(0, 0, -1, -1);
+ painter.drawRoundedRect(g, 3, 3);
}
}