Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 2 commits
  • 5 files changed
  • 0 commit comments
  • 1 contributor
Commits on Mar 21, 2012
Daniel Kabel Adjusted qrc path 5dc518d
Daniel Kabel Added Resolution Info to Poster and Backdrop 11da083
View
27 MovieWidget.cpp
@@ -30,6 +30,15 @@ MovieWidget::MovieWidget(QWidget *parent) :
font.setPointSize(font.pointSize()+4);
ui->movieName->setFont(font);
+ font = ui->posterResolution->font();
+ #ifdef Q_WS_WIN
+ font.setPointSize(font.pointSize()-1);
+ #else
+ font.setPointSize(font.pointSize()-2);
+ #endif
+ ui->posterResolution->setFont(font);
+ ui->backdropResolution->setFont(font);
+
m_movie = 0;
m_posterDownloadManager = new DownloadManager(this);
@@ -215,6 +224,8 @@ void MovieWidget::clear()
ui->poster->setPixmap(QPixmap(":/img/film_reel.png"));
ui->backdrop->setPixmap(QPixmap(":/img/pictures_alt.png").scaled(64, 64, Qt::KeepAspectRatio, Qt::SmoothTransformation));
ui->tabWidget->setCurrentIndex(0);
+ ui->posterResolution->setText("");
+ ui->backdropResolution->setText("");
m_chosenPoster = QImage();
m_chosenBackdrop = QImage();
m_loadedFromScraper = false;
@@ -366,15 +377,21 @@ void MovieWidget::updateMovieInfo()
ui->countries->setItem(row, 0, new QTableWidgetItem(country));
}
- if (!m_movie->posterImage()->isNull())
+ if (!m_movie->posterImage()->isNull()) {
ui->poster->setPixmap(QPixmap::fromImage(*m_movie->posterImage()).scaledToWidth(200, Qt::SmoothTransformation));
- else
+ ui->posterResolution->setText(QString("%1x%2").arg(m_movie->posterImage()->width()).arg(m_movie->posterImage()->height()));
+ } else {
ui->poster->setPixmap(QPixmap(":/img/film_reel.png"));
+ ui->posterResolution->setText("");
+ }
- if (!m_movie->backdropImage()->isNull())
+ if (!m_movie->backdropImage()->isNull()) {
ui->backdrop->setPixmap(QPixmap::fromImage(*m_movie->backdropImage()).scaledToWidth(200, Qt::SmoothTransformation));
- else
+ ui->backdropResolution->setText(QString("%1x%2").arg(m_movie->backdropImage()->width()).arg(m_movie->backdropImage()->height()));
+ } else {
ui->backdrop->setPixmap(QPixmap(":/img/pictures_alt.png").scaled(64, 64, Qt::KeepAspectRatio, Qt::SmoothTransformation));
+ ui->backdropResolution->setText("");
+ }
emit setActionSaveEnabled(true);
}
@@ -439,9 +456,11 @@ void MovieWidget::posterDownloadFinished(DownloadManagerElement elem)
if (elem.imageType == TypePoster) {
m_chosenPoster = elem.image;
ui->poster->setPixmap(QPixmap::fromImage(elem.image).scaled(200, 300, Qt::KeepAspectRatio, Qt::SmoothTransformation));
+ ui->posterResolution->setText(QString("%1x%2").arg(elem.image.width()).arg(elem.image.height()));
} else if (elem.imageType == TypeBackdrop) {
m_chosenBackdrop = elem.image;
ui->backdrop->setPixmap(QPixmap::fromImage(elem.image).scaled(200, 112, Qt::KeepAspectRatio, Qt::SmoothTransformation));
+ ui->backdropResolution->setText(QString("%1x%2").arg(elem.image.width()).arg(elem.image.height()));
}
if (m_posterDownloadManager->downloadQueueSize() == 0)
emit setActionSaveEnabled(true);
View
42 MovieWidget.ui
@@ -326,7 +326,7 @@
<string/>
</property>
<property name="icon">
- <iconset resource="XBMM.qrc">
+ <iconset resource="MediaElch.qrc">
<normaloff>:/img/plus.png</normaloff>:/img/plus.png</iconset>
</property>
</widget>
@@ -340,7 +340,7 @@
<string/>
</property>
<property name="icon">
- <iconset resource="XBMM.qrc">
+ <iconset resource="MediaElch.qrc">
<normaloff>:/img/minus.png</normaloff>:/img/minus.png</iconset>
</property>
</widget>
@@ -425,7 +425,7 @@
<string/>
</property>
<property name="icon">
- <iconset resource="XBMM.qrc">
+ <iconset resource="MediaElch.qrc">
<normaloff>:/img/plus.png</normaloff>:/img/plus.png</iconset>
</property>
</widget>
@@ -439,7 +439,7 @@
<string/>
</property>
<property name="icon">
- <iconset resource="XBMM.qrc">
+ <iconset resource="MediaElch.qrc">
<normaloff>:/img/minus.png</normaloff>:/img/minus.png</iconset>
</property>
</widget>
@@ -524,7 +524,7 @@
<string/>
</property>
<property name="icon">
- <iconset resource="XBMM.qrc">
+ <iconset resource="MediaElch.qrc">
<normaloff>:/img/plus.png</normaloff>:/img/plus.png</iconset>
</property>
</widget>
@@ -538,7 +538,7 @@
<string/>
</property>
<property name="icon">
- <iconset resource="XBMM.qrc">
+ <iconset resource="MediaElch.qrc">
<normaloff>:/img/minus.png</normaloff>:/img/minus.png</iconset>
</property>
</widget>
@@ -616,7 +616,7 @@
<string/>
</property>
<property name="icon">
- <iconset resource="XBMM.qrc">
+ <iconset resource="MediaElch.qrc">
<normaloff>:/img/plus.png</normaloff>:/img/plus.png</iconset>
</property>
</widget>
@@ -630,7 +630,7 @@
<string/>
</property>
<property name="icon">
- <iconset resource="XBMM.qrc">
+ <iconset resource="MediaElch.qrc">
<normaloff>:/img/minus.png</normaloff>:/img/minus.png</iconset>
</property>
</widget>
@@ -710,7 +710,7 @@
<string/>
</property>
<property name="pixmap">
- <pixmap resource="XBMM.qrc">:/img/film_reel.png</pixmap>
+ <pixmap resource="MediaElch.qrc">:/img/film_reel.png</pixmap>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
@@ -718,6 +718,16 @@
</widget>
</item>
<item>
+ <widget class="QLabel" name="posterResolution">
+ <property name="toolTip">
+ <string>Resolution</string>
+ </property>
+ <property name="text">
+ <string>Resolution</string>
+ </property>
+ </widget>
+ </item>
+ <item>
<widget class="QLabel" name="label_14">
<property name="font">
<font>
@@ -754,7 +764,7 @@
<string/>
</property>
<property name="pixmap">
- <pixmap resource="XBMM.qrc">:/img/pictures_alt.png</pixmap>
+ <pixmap resource="MediaElch.qrc">:/img/pictures_alt.png</pixmap>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
@@ -762,6 +772,16 @@
</widget>
</item>
<item>
+ <widget class="QLabel" name="backdropResolution">
+ <property name="toolTip">
+ <string>Resolution</string>
+ </property>
+ <property name="text">
+ <string>Resolution</string>
+ </property>
+ </widget>
+ </item>
+ <item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
@@ -797,7 +817,7 @@
</customwidget>
</customwidgets>
<resources>
- <include location="XBMM.qrc"/>
+ <include location="MediaElch.qrc"/>
</resources>
<connections/>
</ui>
View
4 QuestionDialog.ui
@@ -73,7 +73,7 @@ Would you like to continue and lose your changes or go back and save them?</stri
<string/>
</property>
<property name="pixmap">
- <pixmap resource="XBMM.qrc">:/img/warning1.png</pixmap>
+ <pixmap resource="MediaElch.qrc">:/img/warning1.png</pixmap>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
@@ -119,7 +119,7 @@ Would you like to continue and lose your changes or go back and save them?</stri
</layout>
</widget>
<resources>
- <include location="XBMM.qrc"/>
+ <include location="MediaElch.qrc"/>
</resources>
<connections/>
</ui>
View
BIN  i18n/MediaElch_de.qm
Binary file not shown
View
24 i18n/MediaElch_de.ts
@@ -501,42 +501,50 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../MovieWidget.ui" line="707"/>
- <location filename="../MovieWidget.ui" line="751"/>
+ <location filename="../MovieWidget.ui" line="761"/>
<source>Click to Change</source>
<translation>Zum Ändern klicken</translation>
</message>
<message>
- <location filename="../MovieWidget.ui" line="729"/>
+ <location filename="../MovieWidget.ui" line="723"/>
+ <location filename="../MovieWidget.ui" line="726"/>
+ <location filename="../MovieWidget.ui" line="777"/>
+ <location filename="../MovieWidget.ui" line="780"/>
+ <source>Resolution</source>
+ <translation>Auflösung</translation>
+ </message>
+ <message>
+ <location filename="../MovieWidget.ui" line="739"/>
<source>Backdrop</source>
<translation>Fanart</translation>
</message>
<message>
- <location filename="../MovieWidget.cpp" line="126"/>
+ <location filename="../MovieWidget.cpp" line="135"/>
<source>Unknown Actor</source>
<translation>Unbekannter Schauspieler</translation>
</message>
<message>
- <location filename="../MovieWidget.cpp" line="127"/>
+ <location filename="../MovieWidget.cpp" line="136"/>
<source>Unkown Role</source>
<translation>Unbekannte Rolle</translation>
</message>
<message>
- <location filename="../MovieWidget.cpp" line="145"/>
+ <location filename="../MovieWidget.cpp" line="154"/>
<source>Unkown Genre</source>
<translation>Unbekanntes Genre</translation>
</message>
<message>
- <location filename="../MovieWidget.cpp" line="163"/>
+ <location filename="../MovieWidget.cpp" line="172"/>
<source>Unknown Studio</source>
<translation>Unbekanntes Studio</translation>
</message>
<message>
- <location filename="../MovieWidget.cpp" line="181"/>
+ <location filename="../MovieWidget.cpp" line="190"/>
<source>Unkown Country</source>
<translation>Unbekanntes Land</translation>
</message>
<message>
- <location filename="../MovieWidget.cpp" line="512"/>
+ <location filename="../MovieWidget.cpp" line="531"/>
<source>Downloading Missing Actor Images...</source>
<translation>Lade fehlende Schauspieler Bilder...</translation>
</message>

No commit comments for this range

Something went wrong with that request. Please try again.