Change about message
This commit is contained in:
		
							parent
							
								
									15d4bcb36e
								
							
						
					
					
						commit
						e36fbbf3b0
					
				@ -279,15 +279,20 @@ void Manager::copyLastToClipboard()
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
void Manager::about()
 | 
					void Manager::about()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  auto text =
 | 
					  const auto mail = "translator@gres.biz";
 | 
				
			||||||
      QObject::tr(R"(Optical character recognition (OCR) and translation tool
 | 
					  const auto issues = "https://github.com/OneMoreGres/ScreenTranslator/issues";
 | 
				
			||||||
Author: Gres (translator@gres.biz)
 | 
					  const auto text =
 | 
				
			||||||
Version: %1)")
 | 
					      QObject::tr(
 | 
				
			||||||
          .arg(QApplication::applicationVersion());
 | 
					          R"(<p>Optical character recognition (OCR) and translation tool</p>
 | 
				
			||||||
 | 
					<p>Version: %1</p>
 | 
				
			||||||
 | 
					<p>Author: Gres (<a href="mailto:%2">%2</a>)</p>
 | 
				
			||||||
 | 
					<p>Issues: <a href="%3">github</a></p>)")
 | 
				
			||||||
 | 
					          .arg(QApplication::applicationVersion(), mail, issues);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  QMessageBox message(QMessageBox::Information, QObject::tr("About"), text,
 | 
					  QMessageBox message(QMessageBox::Information, QObject::tr("About"), text,
 | 
				
			||||||
                      QMessageBox::Ok);
 | 
					                      QMessageBox::Ok);
 | 
				
			||||||
  message.setIconPixmap(QIcon(":/icons/app.png").pixmap(QSize(64, 64)));
 | 
					  message.setIconPixmap(QIcon(":/icons/app.png").pixmap(QSize(64, 64)));
 | 
				
			||||||
 | 
					  message.setTextFormat(Qt::RichText);
 | 
				
			||||||
  message.exec();
 | 
					  message.exec();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user