mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14756 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d1fd1a1f97
commit
7bf7f56194
@ -58,7 +58,7 @@ void QParagraph::apply()
|
|||||||
|
|
||||||
// alignment
|
// alignment
|
||||||
LyXAlignment align;
|
LyXAlignment align;
|
||||||
switch (dialog_->align->currentItem()) {
|
switch (dialog_->align->currentIndex()) {
|
||||||
case 0:
|
case 0:
|
||||||
align = LYX_ALIGN_BLOCK;
|
align = LYX_ALIGN_BLOCK;
|
||||||
break;
|
break;
|
||||||
@ -79,7 +79,7 @@ void QParagraph::apply()
|
|||||||
// get spacing
|
// get spacing
|
||||||
Spacing::Space linespacing = Spacing::Default;
|
Spacing::Space linespacing = Spacing::Default;
|
||||||
string other;
|
string other;
|
||||||
switch (dialog_->linespacing->currentItem()) {
|
switch (dialog_->linespacing->currentIndex()) {
|
||||||
case 0:
|
case 0:
|
||||||
linespacing = Spacing::Default;
|
linespacing = Spacing::Default;
|
||||||
break;
|
break;
|
||||||
@ -139,7 +139,7 @@ void QParagraph::update_contents()
|
|||||||
i = 0;
|
i = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
dialog_->align->setCurrentItem(i);
|
dialog_->align->setCurrentIndex(i);
|
||||||
|
|
||||||
|
|
||||||
//LyXAlignment alignpos = controller().alignPossible();
|
//LyXAlignment alignpos = controller().alignPossible();
|
||||||
@ -166,7 +166,7 @@ void QParagraph::update_contents()
|
|||||||
linespacing = 0;
|
linespacing = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
dialog_->linespacing->setCurrentItem(linespacing);
|
dialog_->linespacing->setCurrentIndex(linespacing);
|
||||||
if (space.getSpace() == Spacing::Other) {
|
if (space.getSpace() == Spacing::Other) {
|
||||||
dialog_->linespacingValue->setText(toqstr(space.getValueAsString()));
|
dialog_->linespacingValue->setText(toqstr(space.getValueAsString()));
|
||||||
dialog_->linespacingValue->setEnabled(true);
|
dialog_->linespacingValue->setEnabled(true);
|
||||||
|
@ -80,7 +80,7 @@ void QParagraphDialog::change_adaptor()
|
|||||||
|
|
||||||
void QParagraphDialog::enableLinespacingValue(int)
|
void QParagraphDialog::enableLinespacingValue(int)
|
||||||
{
|
{
|
||||||
bool const enable = linespacing->currentItem() == 4;
|
bool const enable = linespacing->currentIndex() == 4;
|
||||||
linespacingValue->setEnabled(enable);
|
linespacingValue->setEnabled(enable);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user