Port qlscribe to Qt 6
This commit is contained in:
+6
-3
@@ -41,6 +41,7 @@
|
||||
#include <QCloseEvent>
|
||||
#include <QApplication>
|
||||
#include <QClipboard>
|
||||
#include <QMimeData>
|
||||
#include <QSettings>
|
||||
#include <QImageReader>
|
||||
#include <QPicture>
|
||||
@@ -75,7 +76,8 @@ MainWindow::MainWindow( bool enablePrint )
|
||||
SLOT(map()) );
|
||||
m_newLabelMapper->setMapping( action, modeTitle );
|
||||
}
|
||||
connect( m_newLabelMapper, SIGNAL(mapped(int)), this, SLOT(onMenuNewLabel(int)) );
|
||||
connect(m_newLabelMapper, &QSignalMapper::mappedInt,
|
||||
this, &MainWindow::onMenuNewLabel);
|
||||
|
||||
m_menuFile->addAction( tr( "Open...", "Menu item \"Open\"" ),
|
||||
this,
|
||||
@@ -169,7 +171,8 @@ MainWindow::MainWindow( bool enablePrint )
|
||||
m_insertMapper->setMapping( action, i->first );
|
||||
connect( action, SIGNAL(triggered()), m_insertMapper, SLOT(map()) );
|
||||
}
|
||||
connect( m_insertMapper, SIGNAL(mapped(int)), this, SLOT(onMenuInsert(int)) );
|
||||
connect(m_insertMapper, &QSignalMapper::mappedInt,
|
||||
this, &MainWindow::onMenuInsert);
|
||||
|
||||
connect( QApplication::clipboard(), SIGNAL(changed(QClipboard::Mode)),
|
||||
this, SLOT(updateMenu()) );
|
||||
@@ -545,7 +548,7 @@ void MainWindow::onMenuAbout()
|
||||
QMessageBox::about( this,
|
||||
tr( "About" ),
|
||||
tr( "<h3>qlscribe - Qt lisghtScribe</h3>"
|
||||
"<p>release 0.16 $Revision$</p>"
|
||||
"<p>release 0.17</p>"
|
||||
"<p>visit project at home page "
|
||||
"<a href=\"http://qlscribe.sourceforge.net/\">qlscribe.sourceforge.net</a></p>" ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user