标签: ncurses-cdk

Angular Material 2 Table Mat Row Click事件也在Mat Cell中单击按钮进行调用

我是材料2的新手,我已经实现了mat表,我在行中点击事件打开对话框,在最后一栏"Action"中还有一个菜单按钮,但点击按钮它也打开对话框而不是打开菜单.

    <mat-table #table [dataSource]="dataSource" matSort  (matSortChange)="sortData($event)">
    <ng-container matColumnDef="id">
          <mat-header-cell *matHeaderCellDef > No. </mat-header-cell>
          <mat-cell *matCellDef="let element"> 
              <mat-checkbox checked='true'></mat-checkbox>
          </mat-cell>
    </ng-container>
    <ng-container matColumnDef="unit_num">
        <mat-header-cell *matHeaderCellDef  mat-sort-header="unit_num"> Unit No. </mat-header-cell>
        <mat-cell *matCellDef="let element"> {{element.unit_num}} </mat-cell>
    </ng-container>
    <ng-container matColumnDef="unit_type">
        <mat-header-cell *matHeaderCellDef mat-sort-header="unit_type"> Unit Type </mat-header-cell>
        <mat-cell *matCellDef="let element"> {{element.unit_type}} </mat-cell>
    </ng-container>
    <ng-container matColumnDef="shares">
        <mat-header-cell *matHeaderCellDef mat-sort-header="shares"> Shares </mat-header-cell>
        <mat-cell *matCellDef="let element"> {{element.shares}} </mat-cell>
      </ng-container>
    <ng-container matColumnDef="sections">
        <mat-header-cell *matHeaderCellDef>Section </mat-header-cell>
        <mat-cell *matCellDef="let element"> {{element.sections.section_type}} </mat-cell>
    </ng-container>
    <ng-container matColumnDef="buildings">
        <mat-header-cell *matHeaderCellDef >Building …
Run Code Online (Sandbox Code Playgroud)

material xmltable ncurses-cdk onrowclick angular-material2

19
推荐指数
2
解决办法
4万
查看次数

CDK与Qt"信号"碰撞

我正在为我的Qt项目构建一个NCurses接口.我想使用CDK,但我认为这个结构的"信号"成员与Qt"signals"关键字冲突.

/usr/include/linux/cdk.h:411: error: expected unqualified-id before 'protected'
Run Code Online (Sandbox Code Playgroud)

我怎样才能让CDK与Qt一起工作?

c++ qt ncurses c-preprocessor ncurses-cdk

5
推荐指数
1
解决办法
1739
查看次数