File: c2bConfigureFR.cpp

package info (click to toggle)
cb2bib 1.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,368 kB
  • sloc: cpp: 24,179; sh: 481; makefile: 16
file content (39 lines) | stat: -rw-r--r-- 1,110 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/***************************************************************************
 *   Copyright (C) 2004-2015 by Pere Constans
 *   constans@molspaces.com
 *   cb2Bib version 1.9.2. Licensed under the GNU GPL version 3.
 *   See the LICENSE file that comes with this distribution.
 ***************************************************************************/
#include "c2bConfigureFR.h"


#include <QTreeWidgetItem>



c2bConfigureFR::c2bConfigureFR(QTreeWidgetItem* item, QWidget* parentw) : QDialog(parentw)
{
    ui.setupUi(this);
    itemFindReplace = item;
    ui.lineEditFind->setText(itemFindReplace->text(0));
    ui.lineEditReplace->setText(itemFindReplace->text(1));
    ui.lineEditDescription->setText(itemFindReplace->text(2));
    ui.lineEditFind->setFocus();
}

c2bConfigureFR::~c2bConfigureFR()
{}


void c2bConfigureFR::reject()
{
    QDialog::reject();
}

void c2bConfigureFR::accept()
{
    itemFindReplace->setText(0, ui.lineEditFind->text());
    itemFindReplace->setText(1, ui.lineEditReplace->text());
    itemFindReplace->setText(2, ui.lineEditDescription->text());
    QDialog::accept();
}