1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00

Merge pull request #62 from JHooverman/master

Small fixes
This commit is contained in:
David Rosca 2011-12-16 10:46:19 -08:00
commit 4c9a499187
6 changed files with 7 additions and 7 deletions

View File

@ -26,7 +26,7 @@ AdBlockIcon::AdBlockIcon(QupZilla* mainClass, QWidget* parent)
{ {
setMaximumHeight(16); setMaximumHeight(16);
setCursor(Qt::PointingHandCursor); setCursor(Qt::PointingHandCursor);
setToolTip(tr("AdBlock let you block any unwanted content on pages")); setToolTip(tr("AdBlock lets you block unwanted content on web-pages"));
connect(this, SIGNAL(clicked(QPoint)), this, SLOT(showMenu(QPoint))); connect(this, SIGNAL(clicked(QPoint)), this, SLOT(showMenu(QPoint)));
} }

View File

@ -144,7 +144,7 @@ void CommandLineOptions::parseActions()
} }
if (m_argc > 1 && !found) { if (m_argc > 1 && !found) {
cout << " Used bad arguments! Please see help below." << endl; cout << " Invalid option! Please see help below." << endl;
showHelp(); showHelp();
ActionPair pair; ActionPair pair;
pair.action = ExitAction; pair.action = ExitAction;

View File

@ -659,7 +659,7 @@ bool MainApplication::restoreStateSlot(QupZilla* window)
} }
if (settings.value("isCrashed", false).toBool() && afterStart != 3) { if (settings.value("isCrashed", false).toBool() && afterStart != 3) {
QMessageBox::StandardButton button = QMessageBox::warning(window, tr("Last session crashed"), QMessageBox::StandardButton button = QMessageBox::warning(window, tr("Last session crashed"),
tr("<b>QupZilla crashed :-(</b><br/>Oops, last session of QupZilla ends with its crash. We are very sorry. Would you try to restore saved state?"), tr("<b>QupZilla crashed :-(</b><br/>Oops, the last session of QupZilla was interrupted unexpectedly. We apologize for this. Would you like to try restoring the last saved state?"),
QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes); QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes);
if (button != QMessageBox::Yes) { if (button != QMessageBox::Yes) {
m_isRestoring = false; m_isRestoring = false;

View File

@ -1399,7 +1399,7 @@ bool QupZilla::quitApp()
QDialog* dialog = new QDialog(this); QDialog* dialog = new QDialog(this);
Ui_CloseDialog* ui = new Ui_CloseDialog(); Ui_CloseDialog* ui = new Ui_CloseDialog();
ui->setupUi(dialog); ui->setupUi(dialog);
ui->textLabel->setText(tr("There are still %1 open tabs and your session won't be stored. Are you sure to quit?").arg(m_tabWidget->count())); ui->textLabel->setText(tr("There are still %1 open tabs and your session won't be stored. Are you sure to quit QupZilla?").arg(m_tabWidget->count()));
ui->iconLabel->setPixmap(style()->standardPixmap(QStyle::SP_MessageBoxWarning)); ui->iconLabel->setPixmap(style()->standardPixmap(QStyle::SP_MessageBoxWarning));
if (dialog->exec() != QDialog::Accepted) { if (dialog->exec() != QDialog::Accepted) {
return false; return false;

View File

@ -32,7 +32,7 @@ AutoFillNotification::AutoFillNotification(const QUrl &url, const QByteArray &da
{ {
setAttribute(Qt::WA_DeleteOnClose); setAttribute(Qt::WA_DeleteOnClose);
ui->setupUi(widget()); ui->setupUi(widget());
ui->label->setText(tr("Do you want QupZilla to remember password for <b>%1</b> on %2?").arg(user, url.host())); ui->label->setText(tr("Do you want QupZilla to remember the password for <b>%1</b> on %2?").arg(user, url.host()));
ui->closeButton->setIcon(IconProvider::standardIcon(QStyle::SP_DialogCloseButton)); ui->closeButton->setIcon(IconProvider::standardIcon(QStyle::SP_DialogCloseButton));
connect(ui->remember, SIGNAL(clicked()), this, SLOT(remember())); connect(ui->remember, SIGNAL(clicked()), this, SLOT(remember()));

View File

@ -547,7 +547,7 @@ void BookmarksManager::insertBookmark(const QUrl &url, const QString &title, con
layout->addWidget(edit); layout->addWidget(edit);
layout->addWidget(combo); layout->addWidget(combo);
if (m_bookmarksModel->isBookmarked(url)) { if (m_bookmarksModel->isBookmarked(url)) {
layout->addWidget(new QLabel(tr("<b>Warning: </b>You already have this page bookmarked!"))); layout->addWidget(new QLabel(tr("<b>Warning: </b>You already have bookmarked this page!")));
} }
layout->addWidget(box); layout->addWidget(box);
@ -560,7 +560,7 @@ void BookmarksManager::insertBookmark(const QUrl &url, const QString &title, con
combo->addItem(style()->standardIcon(QStyle::SP_DirIcon), query.value(0).toString()); combo->addItem(style()->standardIcon(QStyle::SP_DirIcon), query.value(0).toString());
} }
label->setText(tr("Choose name and location of bookmark.")); label->setText(tr("Choose name and location of this bookmark."));
edit->setText(title); edit->setText(title);
edit->setCursorPosition(0); edit->setCursorPosition(0);
dialog->setWindowIcon(_iconForUrl(url)); dialog->setWindowIcon(_iconForUrl(url));