Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI : corrige l'autopreview #176

Merged
merged 2 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion qtribu/gui/form_article.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def on_btn_submit(self) -> Union[bool, str, None]:
f"&in_art_date={self.dte_proposed_date.date().toString('dd/MM/yyyy')}"
f"&tx_art_content={self.txt_description.toPlainText()}"
f"&tx_misc_comment={self.txt_comment.toPlainText()} "
f"\n---\n\n{__title__} {__version__}"
"\n---\n\n" + self.tr("Prefilled with ") + f"{__title__} {__version__}"
f"&title=[Proposition] {self.lne_title.text()} - {__title__} {__version__}"
)
self.log(message=f"Opening issue form: {completed_url}", log_level=4)
Expand Down
6 changes: 4 additions & 2 deletions qtribu/gui/form_rdp_news.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def __init__(self, parent: Optional[QWidget] = None):
QIcon(QgsApplication.iconPath("mActionShowAllLayersGray.svg"))
)
self.btn_preview.clicked.connect(self.generate_preview)
self.txt_preview.setStyleSheet("background-color:transparent;")
self.txt_preview.setStyleSheet("background-color: #DCDCDC;")

self.txt_body.textChanged.connect(self.auto_preview)

# publication
self.chb_license.setChecked(
Expand Down Expand Up @@ -270,7 +272,7 @@ def on_btn_submit(self) -> Union[bool, str, None]:
f"&in_news_icon={self.cbb_icon.currentText()}"
f"&tx_news_content={self.txt_body.toPlainText()}"
f"&tx_misc_comment={self.txt_comment.toPlainText()} "
f"\n---\n\n{__title__} {__version__}"
"\n---\n\n" + self.tr("Prefilled with ") + f"{__title__} {__version__}"
f"&title=[GeoRDP] {self.lne_title.text()} - {__title__} {__version__}"
)
self.log(message=f"Opening issue form: {completed_url}", log_level=4)
Expand Down
Loading