equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the demos of the Qt Toolkit. |
7 ** This file is part of the demos of the Qt Toolkit. |
8 ** |
8 ** |
62 }; |
62 }; |
63 |
63 |
64 AddressBar::AddressBar(QWidget *parent) |
64 AddressBar::AddressBar(QWidget *parent) |
65 : QWidget(parent) |
65 : QWidget(parent) |
66 { |
66 { |
67 m_lineEdit = new LineEdit(parent); |
67 m_lineEdit = new LineEdit(this); |
68 connect(m_lineEdit, SIGNAL(returnPressed()), SLOT(processAddress())); |
68 connect(m_lineEdit, SIGNAL(returnPressed()), SLOT(processAddress())); |
69 m_toolButton = new QToolButton(parent); |
69 m_toolButton = new QToolButton(this); |
70 m_toolButton->setText("Go"); |
70 m_toolButton->setText("Go"); |
71 connect(m_toolButton, SIGNAL(clicked()), SLOT(processAddress())); |
71 connect(m_toolButton, SIGNAL(clicked()), SLOT(processAddress())); |
72 } |
72 } |
73 |
73 |
74 QSize AddressBar::sizeHint() const |
74 QSize AddressBar::sizeHint() const |