MainWindow: Remove copy and paste actions

Remove the copy and paste actions and slots from the main window code.
They have not been working for a very long time and seem to be rather
useless anyway.
This commit is contained in:
Martin Kleusberg
2013-01-18 22:12:20 +01:00
parent d05e90e495
commit e52f268578
3 changed files with 0 additions and 97 deletions

View File

@@ -27,7 +27,6 @@ MainWindow::MainWindow(QWidget* parent)
: QMainWindow(parent),
ui(new Ui::MainWindow),
editWin(new EditDialog(this)),
clipboard(QApplication::clipboard()),
findWin(0)
{
ui->setupUi(this);
@@ -633,37 +632,6 @@ void MainWindow::editTable()
}
}
void MainWindow::copy()
{
QWidget * t = ui->dataTable->cellWidget(ui->dataTable->currentRow(), ui->dataTable->currentColumn());
if (t!=0){
if (QString(t->metaObject()->className()) == "QLineEdit"){
/*we are in edit mode*/
if (t->hasFocus()){
QLineEdit * le = (QLineEdit *) t;
le->copy();
}
}
}
if (ui->editGoto->hasFocus())
ui->editGoto->copy();
}
void MainWindow::paste()
{
QWidget * t = ui->dataTable->cellWidget(ui->dataTable->currentRow(), ui->dataTable->currentColumn());
if (t!=0){
if ( QString(t->metaObject()->className()) == "QLineEdit" ){
/*we are in edit mode*/
if (t->hasFocus()){
QLineEdit * le = (QLineEdit *) t;
le->paste();}
}
}
if (ui->editGoto->hasFocus())
ui->editGoto->paste();
}
void MainWindow::helpWhatsThis()
{
QWhatsThis::enterWhatsThisMode ();