mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +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
|
||||
LyXAlignment align;
|
||||
switch (dialog_->align->currentItem()) {
|
||||
switch (dialog_->align->currentIndex()) {
|
||||
case 0:
|
||||
align = LYX_ALIGN_BLOCK;
|
||||
break;
|
||||
@ -79,7 +79,7 @@ void QParagraph::apply()
|
||||
// get spacing
|
||||
Spacing::Space linespacing = Spacing::Default;
|
||||
string other;
|
||||
switch (dialog_->linespacing->currentItem()) {
|
||||
switch (dialog_->linespacing->currentIndex()) {
|
||||
case 0:
|
||||
linespacing = Spacing::Default;
|
||||
break;
|
||||
@ -139,7 +139,7 @@ void QParagraph::update_contents()
|
||||
i = 0;
|
||||
break;
|
||||
}
|
||||
dialog_->align->setCurrentItem(i);
|
||||
dialog_->align->setCurrentIndex(i);
|
||||
|
||||
|
||||
//LyXAlignment alignpos = controller().alignPossible();
|
||||
@ -166,7 +166,7 @@ void QParagraph::update_contents()
|
||||
linespacing = 0;
|
||||
break;
|
||||
}
|
||||
dialog_->linespacing->setCurrentItem(linespacing);
|
||||
dialog_->linespacing->setCurrentIndex(linespacing);
|
||||
if (space.getSpace() == Spacing::Other) {
|
||||
dialog_->linespacingValue->setText(toqstr(space.getValueAsString()));
|
||||
dialog_->linespacingValue->setEnabled(true);
|
||||
|
@ -80,7 +80,7 @@ void QParagraphDialog::change_adaptor()
|
||||
|
||||
void QParagraphDialog::enableLinespacingValue(int)
|
||||
{
|
||||
bool const enable = linespacing->currentItem() == 4;
|
||||
bool const enable = linespacing->currentIndex() == 4;
|
||||
linespacingValue->setEnabled(enable);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user