Browse Source

Merge pull request #2377 from pmzqla/spelling

Fix few spelling mistakes
adaptive-webui-19844
sledgehammer999 10 years ago
parent
commit
6757cc0bfe
  1. 12
      src/main.cpp
  2. 2
      src/properties/propertieswidget.cpp
  3. 2
      src/properties/propertieswidget.ui
  4. 2
      src/webui/www/public/properties_content.html

12
src/main.cpp

@ -114,7 +114,7 @@ struct QBtCommandLineParameters
#endif #endif
int webUiPort; int webUiPort;
QStringList torrents; QStringList torrents;
QString uknownParameter; QString unknownParameter;
QBtCommandLineParameters() QBtCommandLineParameters()
: showHelp(false) : showHelp(false)
@ -155,9 +155,9 @@ int main(int argc, char *argv[])
const QBtCommandLineParameters params = parseCommandLine(); const QBtCommandLineParameters params = parseCommandLine();
if (!params.uknownParameter.isEmpty()) { if (!params.unknownParameter.isEmpty()) {
displayBadArgMessage(QObject::tr("%1 is an uknown command line parameter.", "--random-parameter is an uknown command line parameter.") displayBadArgMessage(QObject::tr("%1 is an unknown command line parameter.", "--random-parameter is an unknown command line parameter.")
.arg(params.uknownParameter)); .arg(params.unknownParameter));
return EXIT_FAILURE; return EXIT_FAILURE;
} }
@ -325,8 +325,8 @@ QBtCommandLineParameters parseCommandLine()
} }
#endif #endif
else { else {
//Uknown argument //Unknown argument
result.uknownParameter = arg; result.unknownParameter = arg;
break; break;
} }
} }

2
src/properties/propertieswidget.cpp

@ -259,7 +259,7 @@ void PropertiesWidget::loadTorrentInfos(const QTorrentHandle& _h)
if (h.has_metadata()) { if (h.has_metadata()) {
// Creation date // Creation date
lbl_creationDate->setText(h.creation_date()); lbl_creationDate->setText(h.creation_date());
// Pieces size // Piece size
pieceSize_lbl->setText(misc::friendlyUnit(h.piece_length())); pieceSize_lbl->setText(misc::friendlyUnit(h.piece_length()));
// Comment // Comment
comment_text->setHtml(misc::parseHtmlLinks(h.comment())); comment_text->setHtml(misc::parseHtmlLinks(h.comment()));

2
src/properties/propertieswidget.ui

@ -478,7 +478,7 @@
<item row="3" column="0"> <item row="3" column="0">
<widget class="QLabel" name="label_3"> <widget class="QLabel" name="label_3">
<property name="text"> <property name="text">
<string>Pieces size:</string> <string>Piece size:</string>
</property> </property>
<property name="alignment"> <property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>

2
src/webui/www/public/properties_content.html

@ -13,7 +13,7 @@
<table> <table>
<tr><td style="text-align:right; padding: 4px;">QBT_TR(Save path:)QBT_TR</td><td id="save_path"></td></tr> <tr><td style="text-align:right; padding: 4px;">QBT_TR(Save path:)QBT_TR</td><td id="save_path"></td></tr>
<tr><td style="text-align:right; padding: 4px;">QBT_TR(Created on:)QBT_TR</td><td id="creation_date"></td></tr> <tr><td style="text-align:right; padding: 4px;">QBT_TR(Created on:)QBT_TR</td><td id="creation_date"></td></tr>
<tr><td style="text-align:right; padding: 4px;">QBT_TR(Pieces size:)QBT_TR</td><td id="piece_size"></td></tr> <tr><td style="text-align:right; padding: 4px;">QBT_TR(Piece size:)QBT_TR</td><td id="piece_size"></td></tr>
<tr><td style="text-align:right; padding: 4px;">QBT_TR(Torrent hash:)QBT_TR</td><td id="torrent_hash"></td></tr> <tr><td style="text-align:right; padding: 4px;">QBT_TR(Torrent hash:)QBT_TR</td><td id="torrent_hash"></td></tr>
<tr><td style="vertical-align: top; padding: 4px; text-align:right;"> <tr><td style="vertical-align: top; padding: 4px; text-align:right;">
<br/> <br/>

Loading…
Cancel
Save