Project

General

Profile

Bug #1739 » TreeViewDragDrop.patch

patch about checkable WPopupMenuItem - Стойчо Стефанов Stoycho Stefanov, 03/14/2013 08:01 AM

View differences:

TreeViewDragDrop_new.C 2013-03-14 09:05:09.515390900 +0100
*/
WString text = popup_->result()->text();
popup_->hide();
Wt::WString msg = WT_VERSION_STR " Action '" + text + "' is not implemented.";
if (popup_->result()->isCheckable()) {
msg += "<br/>the item is checkable and is currently ";
if ( not popup_->result()->isChecked() ) {
// if ( popup_->result()->checkBox()->checkState() == Unchecked ) {
msg += "NOT ";
}
msg += "checked";
}
popupActionBox_ = new WMessageBox("Sorry.","Action '" + text
+ "' is not implemented.", NoIcon, Ok);
popupActionBox_ = new WMessageBox("Sorry.",msg, NoIcon, Ok);
popupActionBox_->buttonClicked()
.connect(this, &TreeViewDragDrop::dialogDone);
popupActionBox_->show();
(2-2/5)