MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / Update

Method Update

source/ui/PopsUi.cpp:163–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161 style_set_group(ui.up_on_sound_edit, "line_edit");
162 style_set_group(ui.up_off_sound_edit, "line_edit");
163}
164void PopsUi::LoadLanguage()
165{
166 lang_trans_t(ui.title_label);
167
168 lang_trans_t(ui.customText_label);
169 lang_trans_t(ui.type_label);
170 lang_trans_t(ui.tip_label);
171 lang_trans_t(ui.sound_label);
172 lang_trans_t(ui.color_label);
173
174 lang_trans_t(ui.enable_label);
175 lang_trans_t(ui.disable_label);
176 lang_trans_t(ui.window_on_label);
177 lang_trans_t(ui.window_off_label);
178 lang_trans_t(ui.click_on_label);
179 lang_trans_t(ui.click_off_label);
180 lang_trans_t(ui.switch_on_label);
181 lang_trans_t(ui.switch_off_label);
182 lang_trans_t(ui.down_on_label);
183 lang_trans_t(ui.down_off_label);
184 lang_trans_t(ui.up_on_label);
185 lang_trans_t(ui.up_off_label);
186
187 lang_trans_t(ui.disply_label);
188 lang_trans_t(ui.disply_x_label);
189 lang_trans_t(ui.disply_y_label);
190 lang_trans_t(ui.disply_size_label);
191 lang_trans_t(ui.disply_time_label);
192}
193
194void PopsUi::SetColor(const QColor& color, QPushButton* button)
195{
196 button->setStyleSheet(QString("border:1px solid black;background-color:rgb(") + QString::number(color.red()) + "," + QString::number(color.green()) + "," + QString::number(color.blue()) + ")");
197}
198void PopsUi::SelectColor(QiUi::PopTextInfo& p)
199{
200 QColorDialog cd(p.c, this);
201 cd.setStyleSheet(QiUi::color_dialog_style);
202 cd.exec();
203 p.c = cd.currentColor();
204}
205void PopsUi::Update()
206{
207 ui.enable_edit->setText(Qi::ui.pop.qe.t);
208 ui.disable_edit->setText(Qi::ui.pop.qd.t);
209 ui.window_on_edit->setText(Qi::ui.pop.we.t);
210 ui.window_off_edit->setText(Qi::ui.pop.wd.t);
211 ui.click_on_edit->setText(Qi::ui.pop.qce.t);

Callers

nothing calls this directly

Calls 1

setValueMethod · 0.45

Tested by

no test coverage detected