layout fix

This commit is contained in:
stojce 2014-09-24 00:14:00 +02:00
parent 5a7b7cca44
commit c14bf84af8
3 changed files with 12 additions and 6 deletions

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 49 49" enable-background="new 0 0 49 49" xml:space="preserve">
<g>
<polygon fill="#E7EEEE" points="23.6,19.9 15.1,19.9 15.1,27.8 23.6,27.8 23.6,33.8 33,23.9 23.6,14" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 482 B

View file

@ -42,8 +42,8 @@ void AddressBarDialog::setupUI() {
QSizePolicy sizePolicyLineEdit(QSizePolicy::Preferred, QSizePolicy::Fixed);
sizePolicyLineEdit.setHorizontalStretch(60);
addressLineEdit->setSizePolicy(sizePolicyLineEdit);
addressLineEdit->setMinimumSize(QSize(200, 50));
addressLineEdit->setMaximumSize(QSize(615, 50));
addressLineEdit->setMinimumSize(QSize(200, 54));
addressLineEdit->setMaximumSize(QSize(615, 54));
QFont font("Helvetica,Arial,sans-serif", 20);
addressLineEdit->setFont(font);
addressLineEdit->setStyleSheet("padding: 0 10px;");
@ -55,8 +55,7 @@ void AddressBarDialog::setupUI() {
goButton = new QPushButton(this);
goButton->setSizePolicy(sizePolicy);
goButton->setMinimumSize(QSize(54, 54));
goButton->setFont(font);
goButton->setText("");
goButton->setIcon(QIcon(Application::resourcesPath() + "images/arrow.svg"));
goButton->setStyleSheet("background: #0e7077; color: #e7eeee; border-radius: 4px;");
goButton->setIconSize(QSize(32, 32));
goButton->setDefault(true);

View file

@ -167,7 +167,7 @@ const QString GET_PLACE = "/api/v1/places/%1";
void AddressManager::attemptPlaceNameLookup(const QString& lookupString) {
// assume this is a place name and see if we can get any info on it
QString placeName = QUrl::toPercentEncoding(lookupString);
AccountManager::getInstance().authenticatedRequest(GET_PLACE.arg(placeName),
AccountManager::getInstance().unauthenticatedRequest(GET_PLACE.arg(placeName),
QNetworkAccessManager::GetOperation,
apiCallbackParameters());
}
@ -268,7 +268,7 @@ bool AddressManager::handleUsername(const QString& lookupString) {
void AddressManager::goToUser(const QString& username) {
QString formattedUsername = QUrl::toPercentEncoding(username);
// this is a username - pull the captured name and lookup that user's location
AccountManager::getInstance().authenticatedRequest(GET_USER_LOCATION.arg(formattedUsername),
AccountManager::getInstance().unauthenticatedRequest(GET_USER_LOCATION.arg(formattedUsername),
QNetworkAccessManager::GetOperation,
apiCallbackParameters());
}