Mercurial > hg > easyhg-kdiff3
comparison kdiff3/src-QT4/smalldialogs.cpp @ 98:236f1c9c3fbf
- Fixed redundant empty line in history merge.
- Fixed inconsistency in directory view info area after scan.
- Fixed crash if trying to disable "Dir & Text Split Screen View" and no
file is loaded.
- Fixed test dialog for regular expressions.
author | joachim99 |
---|---|
date | Sat, 15 May 2010 20:36:52 +0000 |
parents | fcd146072e0c |
children | 7bca1f1340f6 |
comparison
equal
deleted
inserted
replaced
97:5024edf90636 | 98:236f1c9c3fbf |
---|---|
414 QLabel* l = new QLabel(i18n("Auto merge regular expression:"), this); | 414 QLabel* l = new QLabel(i18n("Auto merge regular expression:"), this); |
415 pGrid->addWidget(l,line,0); | 415 pGrid->addWidget(l,line,0); |
416 l->setToolTip( autoMergeRegExpToolTip ); | 416 l->setToolTip( autoMergeRegExpToolTip ); |
417 m_pAutoMergeRegExpEdit = new QLineEdit(this); | 417 m_pAutoMergeRegExpEdit = new QLineEdit(this); |
418 pGrid->addWidget(m_pAutoMergeRegExpEdit,line,1); | 418 pGrid->addWidget(m_pAutoMergeRegExpEdit,line,1); |
419 connect( m_pAutoMergeRegExpEdit, SIGNAL(editTextChanged(const QString&)), this, SLOT(slotRecalc())); | 419 connect( m_pAutoMergeRegExpEdit, SIGNAL(textChanged(const QString&)), this, SLOT(slotRecalc())); |
420 ++line; | 420 ++line; |
421 | 421 |
422 l = new QLabel(i18n("Example auto merge line:"), this); | 422 l = new QLabel(i18n("Example auto merge line:"), this); |
423 pGrid->addWidget(l,line,line,0,1); | 423 pGrid->addWidget(l,line,0); |
424 l->setToolTip( i18n("For auto merge test copy a line as used in your files.") ); | 424 l->setToolTip( i18n("For auto merge test copy a line as used in your files.") ); |
425 m_pAutoMergeExampleEdit = new QLineEdit(this); | 425 m_pAutoMergeExampleEdit = new QLineEdit(this); |
426 pGrid->addWidget(m_pAutoMergeExampleEdit,line,1); | 426 pGrid->addWidget(m_pAutoMergeExampleEdit,line,1); |
427 connect( m_pAutoMergeExampleEdit, SIGNAL(editTextChanged(const QString&)), this, SLOT(slotRecalc())); | 427 connect( m_pAutoMergeExampleEdit, SIGNAL(textChanged(const QString&)), this, SLOT(slotRecalc())); |
428 ++line; | 428 ++line; |
429 | 429 |
430 l = new QLabel(i18n("Match result:"), this); | 430 l = new QLabel(i18n("Match result:"), this); |
431 pGrid->addWidget(l,line,0); | 431 pGrid->addWidget(l,line,0); |
432 m_pAutoMergeMatchResult = new QLineEdit(this); | 432 m_pAutoMergeMatchResult = new QLineEdit(this); |
441 l = new QLabel(i18n("History start regular expression:"), this); | 441 l = new QLabel(i18n("History start regular expression:"), this); |
442 pGrid->addWidget(l,line,0); | 442 pGrid->addWidget(l,line,0); |
443 l->setToolTip( historyStartRegExpToolTip ); | 443 l->setToolTip( historyStartRegExpToolTip ); |
444 m_pHistoryStartRegExpEdit = new QLineEdit(this); | 444 m_pHistoryStartRegExpEdit = new QLineEdit(this); |
445 pGrid->addWidget(m_pHistoryStartRegExpEdit,line,1); | 445 pGrid->addWidget(m_pHistoryStartRegExpEdit,line,1); |
446 connect( m_pHistoryStartRegExpEdit, SIGNAL(editTextChanged(const QString&)), this, SLOT(slotRecalc())); | 446 connect( m_pHistoryStartRegExpEdit, SIGNAL(textChanged(const QString&)), this, SLOT(slotRecalc())); |
447 ++line; | 447 ++line; |
448 | 448 |
449 l = new QLabel(i18n("Example history start line (with leading comment):"), this); | 449 l = new QLabel(i18n("Example history start line (with leading comment):"), this); |
450 pGrid->addWidget(l,line,line,0,1); | 450 pGrid->addWidget(l,line,0); |
451 ++line; | |
452 l->setToolTip( i18n("Copy a history start line as used in your files,\n" | 451 l->setToolTip( i18n("Copy a history start line as used in your files,\n" |
453 "including the leading comment.") ); | 452 "including the leading comment.") ); |
454 m_pHistoryStartExampleEdit = new QLineEdit(this); | 453 m_pHistoryStartExampleEdit = new QLineEdit(this); |
455 pGrid->addWidget(m_pHistoryStartExampleEdit,line,1); | 454 pGrid->addWidget(m_pHistoryStartExampleEdit,line,1); |
456 connect( m_pHistoryStartExampleEdit, SIGNAL(editTextChanged(const QString&)), this, SLOT(slotRecalc())); | 455 connect( m_pHistoryStartExampleEdit, SIGNAL(textChanged(const QString&)), this, SLOT(slotRecalc())); |
457 ++line; | 456 ++line; |
458 | 457 |
459 l = new QLabel(i18n("Match result:"), this); | 458 l = new QLabel(i18n("Match result:"), this); |
460 pGrid->addWidget(l,line,0); | 459 pGrid->addWidget(l,line,0); |
461 m_pHistoryStartMatchResult = new QLineEdit(this); | 460 m_pHistoryStartMatchResult = new QLineEdit(this); |
470 l = new QLabel(i18n("History entry start regular expression:"), this); | 469 l = new QLabel(i18n("History entry start regular expression:"), this); |
471 pGrid->addWidget(l,line,0); | 470 pGrid->addWidget(l,line,0); |
472 l->setToolTip( historyEntryStartRegExpToolTip ); | 471 l->setToolTip( historyEntryStartRegExpToolTip ); |
473 m_pHistoryEntryStartRegExpEdit = new QLineEdit(this); | 472 m_pHistoryEntryStartRegExpEdit = new QLineEdit(this); |
474 pGrid->addWidget(m_pHistoryEntryStartRegExpEdit,line,1); | 473 pGrid->addWidget(m_pHistoryEntryStartRegExpEdit,line,1); |
475 connect( m_pHistoryEntryStartRegExpEdit, SIGNAL(editTextChanged(const QString&)), this, SLOT(slotRecalc())); | 474 connect( m_pHistoryEntryStartRegExpEdit, SIGNAL(textChanged(const QString&)), this, SLOT(slotRecalc())); |
476 ++line; | 475 ++line; |
477 | 476 |
478 l = new QLabel(i18n("History sort key order:"), this); | 477 l = new QLabel(i18n("History sort key order:"), this); |
479 pGrid->addWidget(l,line,0); | 478 pGrid->addWidget(l,line,0); |
480 l->setToolTip( historySortKeyOrderToolTip ); | 479 l->setToolTip( historySortKeyOrderToolTip ); |
481 m_pHistorySortKeyOrderEdit = new QLineEdit(this); | 480 m_pHistorySortKeyOrderEdit = new QLineEdit(this); |
482 pGrid->addWidget(m_pHistorySortKeyOrderEdit,line,1); | 481 pGrid->addWidget(m_pHistorySortKeyOrderEdit,line,1); |
483 connect( m_pHistorySortKeyOrderEdit, SIGNAL(editTextChanged(const QString&)), this, SLOT(slotRecalc())); | 482 connect( m_pHistorySortKeyOrderEdit, SIGNAL(textChanged(const QString&)), this, SLOT(slotRecalc())); |
484 ++line; | 483 ++line; |
485 | 484 |
486 l = new QLabel(i18n("Example history entry start line (without leading comment):"), this); | 485 l = new QLabel(i18n("Example history entry start line (without leading comment):"), this); |
487 pGrid->addWidget(l,line,line,0,1); | 486 pGrid->addWidget(l,line,0); |
488 l->setToolTip( i18n("Copy a history entry start line as used in your files,\n" | 487 l->setToolTip( i18n("Copy a history entry start line as used in your files,\n" |
489 "but omit the leading comment.") ); | 488 "but omit the leading comment.") ); |
490 ++line; | |
491 m_pHistoryEntryStartExampleEdit = new QLineEdit(this); | 489 m_pHistoryEntryStartExampleEdit = new QLineEdit(this); |
492 pGrid->addWidget(m_pHistoryEntryStartExampleEdit,line,1); | 490 pGrid->addWidget(m_pHistoryEntryStartExampleEdit,line,1); |
493 connect( m_pHistoryEntryStartExampleEdit, SIGNAL(editTextChanged(const QString&)), this, SLOT(slotRecalc())); | 491 connect( m_pHistoryEntryStartExampleEdit, SIGNAL(textChanged(const QString&)), this, SLOT(slotRecalc())); |
494 ++line; | 492 ++line; |
495 | 493 |
496 l = new QLabel(i18n("Match result:"), this); | 494 l = new QLabel(i18n("Match result:"), this); |
497 pGrid->addWidget(l,line,0); | 495 pGrid->addWidget(l,line,0); |
498 m_pHistoryEntryStartMatchResult = new QLineEdit(this); | 496 m_pHistoryEntryStartMatchResult = new QLineEdit(this); |