OSDN Git Service
(root)
/
wordring-tm
/
wordring-tm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3d0f566
)
変換中文字列に合わせて訳文パネルの大きさを変えるよう修正。
author
wordring
<kouichi_pm@users.osdn.me>
Fri, 21 Aug 2015 09:56:34 +0000
(18:56 +0900)
committer
wordring
<kouichi_pm@users.osdn.me>
Fri, 21 Aug 2015 09:56:34 +0000
(18:56 +0900)
proxy/tmeditorwidget.cpp
patch
|
blob
|
history
diff --git
a/proxy/tmeditorwidget.cpp
b/proxy/tmeditorwidget.cpp
index
74d4c49
..
f9489ce
100644
(file)
--- a/
proxy/tmeditorwidget.cpp
+++ b/
proxy/tmeditorwidget.cpp
@@
-477,7
+477,7
@@
void TM::SourcePanel::insertFromMimeData(const QMimeData *) { } // ドロップ
void TM::SourcePanel::inputMethodEvent(QInputMethodEvent *ev)
{
ev->setCommitString(""); // 入力禁止
void TM::SourcePanel::inputMethodEvent(QInputMethodEvent *ev)
{
ev->setCommitString(""); // 入力禁止
-
QPlainTextEdit
::inputMethodEvent(ev);
+
TextPanel
::inputMethodEvent(ev);
}
void TM::SourcePanel::keyPressEvent(QKeyEvent *ev)
}
void TM::SourcePanel::keyPressEvent(QKeyEvent *ev)
@@
-610,7
+610,7
@@
void TM::TargetPanel::inputMethodEvent(QInputMethodEvent *ev)
set_text_dirty(true);
set_text_saved(false);
}
set_text_dirty(true);
set_text_saved(false);
}
-
QPlainTextEdit
::inputMethodEvent(ev);
+
TextPanel
::inputMethodEvent(ev);
}
void TM::TargetPanel::keyPressEvent(QKeyEvent *ev)
}
void TM::TargetPanel::keyPressEvent(QKeyEvent *ev)
@@
-814,7
+814,8
@@
void TM::Editor::do_panel_leave(SourcePanel *panel)
{
if(tp->is_text_dirty()) divide_target_sentence(panel);
int index = panel->index();
{
if(tp->is_text_dirty()) divide_target_sentence(panel);
int index = panel->index();
- parent_editor_widget()->save_sentence(m_segment_id, index);
+ if(!tp->is_empty())
+ parent_editor_widget()->save_sentence(m_segment_id, index);
tp->set_text_saved(true);
}
}
tp->set_text_saved(true);
}
}