comparison demos/browser/cookiejar.d @ 113:8636c819ce4d

more porting
author mandel
date Wed, 03 Jun 2009 14:35:25 +0000
parents dcd36d8db2da
children a8d76a9a85aa
comparison
equal deleted inserted replaced
112:e416c5215366 113:8636c819ce4d
540 import ui_cookiesexceptions; 540 import ui_cookiesexceptions;
541 541
542 542
543 class CookiesDialog : public QDialog //, public Ui_CookiesDialog 543 class CookiesDialog : public QDialog //, public Ui_CookiesDialog
544 { 544 {
545 CookiesDialog ui; 545 mixin Ui_CookiesDialog;
546 546
547 public: 547 public:
548 548
549 this(CookieJar cookieJar, QWidget parent = null) 549 this(CookieJar cookieJar, QWidget parent = null)
550 { 550 {
551 super(parent); 551 super(parent);
552 ui.setupUi(this); 552 setupUi(this);
553 setWindowFlags(Qt.Sheet); 553 setWindowFlags(Qt.Sheet);
554 CookieModel model = new CookieModel(cookieJar, this); 554 CookieModel model = new CookieModel(cookieJar, this);
555 m_proxyModel = new QSortFilterProxyModel(this); 555 m_proxyModel = new QSortFilterProxyModel(this);
556 search.textChanged.connect(&m_proxyModel.setFilterFixedString); 556 search.textChanged.connect(&m_proxyModel.setFilterFixedString);
557 removeButton.clicked.connect(&cookiesTable.removeOne); 557 removeButton.clicked.connect(&cookiesTable.removeOne);
727 } 727 }
728 728
729 729
730 class CookiesExceptionsDialog : public QDialog //, public Ui_CookiesExceptionsDialog 730 class CookiesExceptionsDialog : public QDialog //, public Ui_CookiesExceptionsDialog
731 { 731 {
732 CookiesExceptionsDialog ui; 732 mixin Ui_CookiesExceptionsDialog;
733 733
734 public: 734 public:
735 735
736 this(CookieJar cookieJar, QWidget parent = null) 736 this(CookieJar cookieJar, QWidget parent = null)
737 { 737 {
738 super(parent); 738 super(parent);
739 m_cookieJar = cookieJar; 739 m_cookieJar = cookieJar;
740 ui.setupUi(this); 740 setupUi(this);
741 setWindowFlags(Qt.Sheet); 741 setWindowFlags(Qt.Sheet);
742 removeButton.clicked.connect(&exceptionTable.removeOne); 742 removeButton.clicked.connect(&exceptionTable.removeOne);
743 removeAllButton.clicked.connect(&exceptionTable.removeAll); 743 removeAllButton.clicked.connect(&exceptionTable.removeAll);
744 exceptionTable.verticalHeader().hide(); 744 exceptionTable.verticalHeader().hide();
745 exceptionTable.setSelectionBehavior(QAbstractItemView.SelectRows); 745 exceptionTable.setSelectionBehavior(QAbstractItemView.SelectRows);