| 1034 | } |
| 1035 | |
| 1036 | void MainWindowImpl::showImageInformations(int orig_w, int orig_h, double orig_dens_x, double orig_dens_y) |
| 1037 | { |
| 1038 | /* |
| 1039 | Method executed by the signal myLabelPreviewer::previewReady(orig_w, orig_h, orig_dens_x, orig_dens_y); |
| 1040 | */ |
| 1041 | |
| 1042 | img_width = orig_w; |
| 1043 | img_height = orig_h; |
| 1044 | |
| 1045 | m_xResolution = orig_dens_x; |
| 1046 | m_yResolution = orig_dens_y; |
| 1047 | |
| 1048 | int index = treeWidget->currentIndex().row(); |
| 1049 | |
| 1050 | if (index < 0) { |
| 1051 | resetDisplays(); |
| 1052 | |
| 1053 | return; |
| 1054 | } |
| 1055 | |
| 1056 | labelType->setText(QString("<span style=\" font-size:8pt;\">%1</span>") |
| 1057 | .arg(iAList->at(index).suffix)); |
| 1058 | |
| 1059 | QString sSize = SizeUtil::simplifyFileSize(iAList->at(index).size); |
| 1060 | labelFileSize->setText(QString("<span style=\" font-size:8pt;\">%1</span>") |
| 1061 | .arg(sSize)); |
| 1062 | |
| 1063 | label_ImageSize->setText(QString("<span style=\" font-size:8pt;\">%1 x %2 px</span>") |
| 1064 | .arg(img_width) |
| 1065 | .arg(img_height)); |
| 1066 | |
| 1067 | label_ImageResolution->setText(QString("<span style=\" font-size:8pt;\">X = %1 Y = %2</span>") |
| 1068 | .arg(m_xResolution) |
| 1069 | .arg(m_yResolution)); |
| 1070 | } |
| 1071 | |
| 1072 | void MainWindowImpl::onItemSelection() |
| 1073 | { |
nothing calls this directly
no outgoing calls
no test coverage detected