"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/c2bLineEdit.cpp" between
cb2bib-1.9.9.tar.gz and cb2bib-2.0.0.tar.gz

About: cb2Bib is a multiplatform application for rapidly extracting unformatted, or unstandardized bibliographic references from email alerts, journal Web pages, and PDF files.

c2bLineEdit.cpp  (cb2bib-1.9.9):c2bLineEdit.cpp  (cb2bib-2.0.0)
/*************************************************************************** /***************************************************************************
* Copyright (C) 2004-2018 by Pere Constans * Copyright (C) 2004-2019 by Pere Constans
* constans@molspaces.com * constans@molspaces.com
* cb2Bib version 1.9.9. Licensed under the GNU GPL version 3. * cb2Bib version 2.0.0. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution. * See the LICENSE file that comes with this distribution.
***************************************************************************/ ***************************************************************************/
#include "c2bLineEdit.h" #include "c2bLineEdit.h"
#include <QAction> #include <QAction>
#include <QContextMenuEvent> #include <QContextMenuEvent>
#include <QMenu> #include <QMenu>
c2bLineEdit::c2bLineEdit(QWidget* parentw) : QLineEdit(parentw) c2bLineEdit::c2bLineEdit(QWidget* parentw) : QLineEdit(parentw) {}
{}
c2bLineEdit::~c2bLineEdit() c2bLineEdit::~c2bLineEdit() {}
{}
void c2bLineEdit::contextMenuEvent(QContextMenuEvent* e) void c2bLineEdit::contextMenuEvent(QContextMenuEvent* e)
{ {
QMenu* menu = QLineEdit::createStandardContextMenu(); QMenu* menu = QLineEdit::createStandardContextMenu();
QList<QAction*> acts = menu->actions(); QList<QAction*> acts = menu->actions();
QAction* act; QAction* act;
act = new QAction("Clear", menu); act = new QAction("Clear", menu);
act->setEnabled(!text().isEmpty()); act->setEnabled(!text().isEmpty());
connect(act, SIGNAL(triggered()), this, SLOT(clear())); connect(act, SIGNAL(triggered()), this, SLOT(clear()));
menu->insertAction(acts.at(7), act); menu->insertAction(acts.at(7), act);
 End of changes. 4 change blocks. 
6 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)