diff options
| author | Arno <arno@disconnect.de> | 2018-09-14 12:28:29 +0200 |
|---|---|---|
| committer | Arno <arno@disconnect.de> | 2018-09-14 12:28:29 +0200 |
| commit | a3f720638b09a97e58cd8a8a94c5ecaa58afa322 (patch) | |
| tree | b8d1f8e85d72c009661a2bd295cad628d12d6740 | |
| parent | 9bf18870778a908ed6ce3608788ad29897485a6e (diff) | |
| download | SheMov-a3f720638b09a97e58cd8a8a94c5ecaa58afa322.tar.gz SheMov-a3f720638b09a97e58cd8a8a94c5ecaa58afa322.tar.bz2 SheMov-a3f720638b09a97e58cd8a8a94c5ecaa58afa322.zip | |
Make origin distinct when comparing images
Paint background with QPalette::Base when showing the first image.
| -rw-r--r-- | viewer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -91,6 +91,11 @@ void Viewer::displayFile(int index){ if(index < 0){
return;
}
+ if(index == 0){
+ setBackgroundRole(QPalette::Base);
+ }else{
+ setBackgroundRole(QPalette::AlternateBase);
+ }
QPixmap pm(mFiles.at(mCurIndex));
pm = pm.scaled(mMaxSize, Qt::KeepAspectRatio, Qt::SmoothTransformation);
mLabel->setPixmap(pm);
|
