mirror of
https://github.com/Lurkki14/tuxclocker.git
synced 2025-02-25 18:55:24 -06:00
start work on multi-gpu support
This commit is contained in:
parent
fdd88eaeb2
commit
f47615b970
@ -259,8 +259,12 @@ void editProfile::dragPoint(int index_x, int index_y, QMouseEvent* event)
|
|||||||
palette.setCurrentColorGroup(QPalette::Active);
|
palette.setCurrentColorGroup(QPalette::Active);
|
||||||
QColor textColor = palette.color(QPalette::Text);
|
QColor textColor = palette.color(QPalette::Text);
|
||||||
|
|
||||||
coordText->position->setType(QCPItemPosition::ptPlotCoords);
|
//coordText->position->setType(QCPItemPosition::ptPlotCoords);
|
||||||
coordText->position->setCoords(qv_x[index_x], qv_y[index_y] + 4);
|
if (ui->curvePlot->xAxis->pixelToCoord(point.x()) < x_upper*0.1) {
|
||||||
|
coordText->position->setCoords(x_upper*0.1, qv_y[index_y] + 4);
|
||||||
|
} else {
|
||||||
|
coordText->position->setCoords(qv_x[index_x], qv_y[index_y] + 4);
|
||||||
|
}
|
||||||
QString xString = QString::number(qv_x[index_x]);
|
QString xString = QString::number(qv_x[index_x]);
|
||||||
QString yString = QString::number(qv_y[index_y]);
|
QString yString = QString::number(qv_y[index_y]);
|
||||||
coordText->setText(xString + ", " + yString);
|
coordText->setText(xString + ", " + yString);
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>663</width>
|
<width>437</width>
|
||||||
<height>565</height>
|
<height>457</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
|
@ -14,7 +14,8 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
queryGPUSettings();
|
queryGPUSettings();
|
||||||
loadProfileSettings();
|
loadProfileSettings();
|
||||||
queryDriverSettings();
|
queryDriverSettings();
|
||||||
getGPUName();
|
//getGPUName();
|
||||||
|
queryGPUs();
|
||||||
setupMonitorTab();
|
setupMonitorTab();
|
||||||
setupGraphMonitorTab();
|
setupGraphMonitorTab();
|
||||||
tabHandler(ui->tabWidget->currentIndex());
|
tabHandler(ui->tabWidget->currentIndex());
|
||||||
@ -280,7 +281,7 @@ void MainWindow::setupGraphMonitorTab()
|
|||||||
//connect(r, SIGNAL(mouseMove(QMouseEvent*)), SLOT(plotHovered(QMouseEvent*)));
|
//connect(r, SIGNAL(mouseMove(QMouseEvent*)), SLOT(plotHovered(QMouseEvent*)));
|
||||||
connect(plotCmdsList[i].plot, SIGNAL(mouseMove(QMouseEvent*)), SLOT(plotHovered(QMouseEvent*)));
|
connect(plotCmdsList[i].plot, SIGNAL(mouseMove(QMouseEvent*)), SLOT(plotHovered(QMouseEvent*)));
|
||||||
|
|
||||||
connect(plotCmdsList[i].plot, SIGNAL(leaveEvent(QEvent *event)), SLOT(clearPlotTracer(QEvent *event)));
|
//connect(plotCmdsList[i].plot, SIGNAL(leaveEvent(QEvent *event)), SLOT(clearPlotTracer(QEvent *event)));
|
||||||
}
|
}
|
||||||
|
|
||||||
tempPlot->yAxis->setLabel("Temperature (°C)");
|
tempPlot->yAxis->setLabel("Temperature (°C)");
|
||||||
@ -345,14 +346,14 @@ void MainWindow::updateMonitor()
|
|||||||
if (!plotCmdsList[i].vector.isEmpty()) {
|
if (!plotCmdsList[i].vector.isEmpty()) {
|
||||||
double lowestval = plotCmdsList[i].vector[0];
|
double lowestval = plotCmdsList[i].vector[0];
|
||||||
double largestval = plotCmdsList[i].vector[0];
|
double largestval = plotCmdsList[i].vector[0];
|
||||||
for (int j=0; j<plotCmdsList[i].vector.size(); j++) {
|
/*for (int j=0; j<plotCmdsList[i].vector.size(); j++) {
|
||||||
if (plotCmdsList[i].vector[j] < lowestval) {
|
if (plotCmdsList[i].vector[j] < lowestval) {
|
||||||
lowestval = plotCmdsList[i].vector[j];
|
lowestval = plotCmdsList[i].vector[j];
|
||||||
}
|
}
|
||||||
if (plotCmdsList[i].vector[j] > largestval) {
|
if (plotCmdsList[i].vector[j] > largestval) {
|
||||||
largestval = plotCmdsList[i].vector[j];
|
largestval = plotCmdsList[i].vector[j];
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
if (largestval < plotCmdsList[i].valueq) {
|
if (largestval < plotCmdsList[i].valueq) {
|
||||||
plotCmdsList[i].maxtext->setText("Max: " + QString::number(plotCmdsList[i].valueq));
|
plotCmdsList[i].maxtext->setText("Max: " + QString::number(plotCmdsList[i].valueq));
|
||||||
}
|
}
|
||||||
@ -408,6 +409,7 @@ void MainWindow::updateMonitor()
|
|||||||
counter = 0;
|
counter = 0;
|
||||||
}
|
}
|
||||||
counter++;
|
counter++;
|
||||||
|
qDebug() << qv_time.size();
|
||||||
}
|
}
|
||||||
void MainWindow::plotHovered(QMouseEvent *event)
|
void MainWindow::plotHovered(QMouseEvent *event)
|
||||||
{
|
{
|
||||||
@ -426,7 +428,7 @@ void MainWindow::plotHovered(QMouseEvent *event)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
double pointerxcoord = plotCmdsList[plotIndex].plot->xAxis->pixelToCoord(cursor.x());
|
double pointerxcoord = plotCmdsList[plotIndex].plot->xAxis->pixelToCoord(cursor.x());
|
||||||
qDebug() << pointerxcoord << plotVectorSize;
|
//qDebug() << pointerxcoord << plotVectorSize;
|
||||||
plotCmdsList[plotIndex].tracer->position->setCoords(pointerxcoord, plotCmdsList[plotIndex].plot->yAxis->range().upper);
|
plotCmdsList[plotIndex].tracer->position->setCoords(pointerxcoord, plotCmdsList[plotIndex].plot->yAxis->range().upper);
|
||||||
// Find the y-value for the corresponding coordinate
|
// Find the y-value for the corresponding coordinate
|
||||||
int valIndex = 0;
|
int valIndex = 0;
|
||||||
@ -453,8 +455,8 @@ void MainWindow::plotHovered(QMouseEvent *event)
|
|||||||
//QToolTip::showText(cursor, QString::number(plotCmdsList[plotIndex].vector[valIndex]), plotCmdsList[plotIndex].plot);
|
//QToolTip::showText(cursor, QString::number(plotCmdsList[plotIndex].vector[valIndex]), plotCmdsList[plotIndex].plot);
|
||||||
//QToolTip::sh
|
//QToolTip::sh
|
||||||
|
|
||||||
qDebug() << "inside the plot";
|
//qDebug() << "inside the plot";
|
||||||
QThread::msleep(5);
|
QThread::msleep(10);
|
||||||
} else {
|
} else {
|
||||||
// If the cursor is not within the x-range, clear the text
|
// If the cursor is not within the x-range, clear the text
|
||||||
plotCmdsList[plotIndex].valText->setText("");
|
plotCmdsList[plotIndex].valText->setText("");
|
||||||
@ -464,7 +466,6 @@ void MainWindow::plotHovered(QMouseEvent *event)
|
|||||||
}
|
}
|
||||||
void MainWindow::checkForProfiles()
|
void MainWindow::checkForProfiles()
|
||||||
{
|
{
|
||||||
qDebug() << "chkproffunc";
|
|
||||||
// If there are no profiles, create one, then list all the entries whose isProfile is true in the profile selection combo box
|
// If there are no profiles, create one, then list all the entries whose isProfile is true in the profile selection combo box
|
||||||
QSettings settings("nvfancurve");
|
QSettings settings("nvfancurve");
|
||||||
QStringList groups = settings.childGroups();
|
QStringList groups = settings.childGroups();
|
||||||
@ -512,14 +513,31 @@ void MainWindow::getGPUDriver()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::getGPUName()
|
/*void MainWindow::getGPUName()
|
||||||
{
|
{
|
||||||
QProcess process;
|
QProcess process;
|
||||||
process.start(queryGPUName);
|
process.start(queryGPUName);
|
||||||
process.waitForFinished(-1);
|
process.waitForFinished(-1);
|
||||||
ui->GPUNameLabel->setText(process.readLine());
|
ui->GPUNameLabel->setText(process.readLine());
|
||||||
|
queryGPUs();
|
||||||
|
}*/
|
||||||
|
void MainWindow::queryGPUs()
|
||||||
|
{
|
||||||
|
QProcess process;
|
||||||
|
process.start(nvGPUCountQ);
|
||||||
|
process.waitForFinished();
|
||||||
|
for (int i=0; i<process.readLine().toInt(); i++) {
|
||||||
|
process.start(nvUUIDQ + " -i " + QString::number(i));
|
||||||
|
process.waitForFinished();
|
||||||
|
qDebug() << process.readLine();
|
||||||
|
process.start(queryGPUName + " -i " + QString::number(i));
|
||||||
|
process.waitForFinished();
|
||||||
|
QString GPUName = process.readLine();
|
||||||
|
GPUName.chop(1);
|
||||||
|
qDebug() << process.readLine();
|
||||||
|
ui->GPUComboBox->addItem("GPU-" + QString::number(i) + ": " + GPUName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::fanSpeedUpdater()
|
void MainWindow::fanSpeedUpdater()
|
||||||
{
|
{
|
||||||
QProcess process;
|
QProcess process;
|
||||||
@ -840,9 +858,6 @@ void MainWindow::loadProfileSettings()
|
|||||||
ui->fanModeComboBox->setCurrentIndex(fanControlMode);
|
ui->fanModeComboBox->setCurrentIndex(fanControlMode);
|
||||||
}
|
}
|
||||||
ui->statusBar->showMessage("Profile settings loaded.", 7000);
|
ui->statusBar->showMessage("Profile settings loaded.", 7000);
|
||||||
//statusLabelResetTimer->start(7000);
|
|
||||||
//statusLabelResetTimer->setSingleShot(true);
|
|
||||||
connect(statusLabelResetTimer, SIGNAL(timeout()), SLOT(resetStatusLabel()));
|
|
||||||
qDebug() << xCurvePoints << yCurvePoints;
|
qDebug() << xCurvePoints << yCurvePoints;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
71
mainwindow.h
71
mainwindow.h
@ -49,7 +49,9 @@ public:
|
|||||||
QString grepStringToInt = " | egrep -o '[0-9]{0,100}'\"";
|
QString grepStringToInt = " | egrep -o '[0-9]{0,100}'\"";
|
||||||
|
|
||||||
QString queryForNvidiaProp = "/bin/sh -c \"lspci -vnn | grep -c 'Kernel driver in use: nvidia'\"";
|
QString queryForNvidiaProp = "/bin/sh -c \"lspci -vnn | grep -c 'Kernel driver in use: nvidia'\"";
|
||||||
QString queryGPUName = "/bin/sh -c \"nvidia-smi --query-gpu=gpu_name --format=csv | grep '[0-9]'\"";
|
QString queryGPUName = "nvidia-smi --query-gpu=gpu_name --format=csv,noheader";
|
||||||
|
QString nvGPUCountQ = "nvidia-smi --query-gpu=count --format=csv,noheader";
|
||||||
|
QString nvUUIDQ = "nvidia-smi --query-gpu=uuid --format=csv,noheader";
|
||||||
|
|
||||||
QString errorText = "Failed to apply these settings: ";
|
QString errorText = "Failed to apply these settings: ";
|
||||||
|
|
||||||
@ -98,7 +100,8 @@ private slots:
|
|||||||
|
|
||||||
void on_profileComboBox_activated(const QString &arg1);
|
void on_profileComboBox_activated(const QString &arg1);
|
||||||
void queryGPUSettings();
|
void queryGPUSettings();
|
||||||
void getGPUName();
|
//void getGPUName();
|
||||||
|
void queryGPUs();
|
||||||
void on_frequencySlider_valueChanged(int value);
|
void on_frequencySlider_valueChanged(int value);
|
||||||
void on_frequencySpinBox_valueChanged(int arg1);
|
void on_frequencySpinBox_valueChanged(int arg1);
|
||||||
|
|
||||||
@ -137,7 +140,6 @@ private slots:
|
|||||||
|
|
||||||
void on_editProfile_closed();
|
void on_editProfile_closed();
|
||||||
void applyFanMode();
|
void applyFanMode();
|
||||||
//void resetStatusLabel();
|
|
||||||
void enableFanUpdater();
|
void enableFanUpdater();
|
||||||
void setupMonitorTab();
|
void setupMonitorTab();
|
||||||
void updateMonitor();
|
void updateMonitor();
|
||||||
@ -178,38 +180,38 @@ private:
|
|||||||
QTreeWidgetItem *curmaxmemclk = new QTreeWidgetItem;
|
QTreeWidgetItem *curmaxmemclk = new QTreeWidgetItem;
|
||||||
|
|
||||||
// Widgets for the graph monitor
|
// Widgets for the graph monitor
|
||||||
QWidget *plotWidget = new QWidget;
|
QWidget *plotWidget = new QWidget(this);
|
||||||
QScrollArea *plotScrollArea = new QScrollArea;
|
QScrollArea *plotScrollArea = new QScrollArea(this);
|
||||||
QVBoxLayout *lo = new QVBoxLayout;
|
QVBoxLayout *lo = new QVBoxLayout(this);
|
||||||
|
|
||||||
QVBoxLayout *plotLayout = new QVBoxLayout;
|
QVBoxLayout *plotLayout = new QVBoxLayout(this);
|
||||||
|
|
||||||
QVBoxLayout *tempLayout = new QVBoxLayout;
|
QVBoxLayout *tempLayout = new QVBoxLayout(this);
|
||||||
QVBoxLayout *powerDrawLayout = new QVBoxLayout;
|
QVBoxLayout *powerDrawLayout = new QVBoxLayout(this);
|
||||||
QVBoxLayout *coreClkLayout = new QVBoxLayout;
|
QVBoxLayout *coreClkLayout = new QVBoxLayout(this);
|
||||||
QVBoxLayout *memClkLayout = new QVBoxLayout;
|
QVBoxLayout *memClkLayout = new QVBoxLayout(this);
|
||||||
QVBoxLayout *coreUtilLayout = new QVBoxLayout;
|
QVBoxLayout *coreUtilLayout = new QVBoxLayout(this);
|
||||||
QVBoxLayout *memUtilLayout = new QVBoxLayout;
|
QVBoxLayout *memUtilLayout = new QVBoxLayout(this);
|
||||||
QVBoxLayout *voltageLayout = new QVBoxLayout;
|
QVBoxLayout *voltageLayout = new QVBoxLayout(this);
|
||||||
QVBoxLayout *fanSpeedLayout = new QVBoxLayout;
|
QVBoxLayout *fanSpeedLayout = new QVBoxLayout(this);
|
||||||
|
|
||||||
QCustomPlot *tempPlot = new QCustomPlot;
|
QCustomPlot *tempPlot = new QCustomPlot(this);
|
||||||
QCustomPlot *powerDrawPlot = new QCustomPlot;
|
QCustomPlot *powerDrawPlot = new QCustomPlot(this);
|
||||||
QCustomPlot *coreClkPlot = new QCustomPlot;
|
QCustomPlot *coreClkPlot = new QCustomPlot(this);
|
||||||
QCustomPlot *memClkPlot = new QCustomPlot;
|
QCustomPlot *memClkPlot = new QCustomPlot(this);
|
||||||
QCustomPlot *coreUtilPlot = new QCustomPlot;
|
QCustomPlot *coreUtilPlot = new QCustomPlot(this);
|
||||||
QCustomPlot *memUtilPlot = new QCustomPlot;
|
QCustomPlot *memUtilPlot = new QCustomPlot(this);
|
||||||
QCustomPlot *voltagePlot = new QCustomPlot;
|
QCustomPlot *voltagePlot = new QCustomPlot(this);
|
||||||
QCustomPlot *fanSpeedPlot = new QCustomPlot;
|
QCustomPlot *fanSpeedPlot = new QCustomPlot(this);
|
||||||
|
|
||||||
QWidget *tempWidget = new QWidget;
|
QWidget *tempWidget = new QWidget(this);
|
||||||
QWidget *powerDrawWidget = new QWidget;
|
QWidget *powerDrawWidget = new QWidget(this);
|
||||||
QWidget *coreClkWidget = new QWidget;
|
QWidget *coreClkWidget = new QWidget(this);
|
||||||
QWidget *memClkWidget = new QWidget;
|
QWidget *memClkWidget = new QWidget(this);
|
||||||
QWidget *coreUtilWidget = new QWidget;
|
QWidget *coreUtilWidget = new QWidget(this);
|
||||||
QWidget *memUtilWidget = new QWidget;
|
QWidget *memUtilWidget = new QWidget(this);
|
||||||
QWidget *voltageWidget = new QWidget;
|
QWidget *voltageWidget = new QWidget(this);
|
||||||
QWidget *fanSpeedWidget = new QWidget;
|
QWidget *fanSpeedWidget = new QWidget(this);
|
||||||
|
|
||||||
/*QCPTextElement *tempMaxText;
|
/*QCPTextElement *tempMaxText;
|
||||||
QCPTextElement *powerDrawMaxText;
|
QCPTextElement *powerDrawMaxText;
|
||||||
@ -259,13 +261,6 @@ private:
|
|||||||
QVector <plotCmds> plotCmdsList;
|
QVector <plotCmds> plotCmdsList;
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
class plotWidgets : public QWidget
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
protected:
|
|
||||||
//void leaveEvent(QEvent *event);
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // MAINWINDOW_H
|
#endif // MAINWINDOW_H
|
||||||
|
@ -15,13 +15,16 @@
|
|||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="centralWidget">
|
<widget class="QWidget" name="centralWidget">
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||||
|
<item>
|
||||||
|
<widget class="QComboBox" name="GPUComboBox"/>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTabWidget" name="tabWidget">
|
<widget class="QTabWidget" name="tabWidget">
|
||||||
<property name="tabShape">
|
<property name="tabShape">
|
||||||
<enum>QTabWidget::Rounded</enum>
|
<enum>QTabWidget::Rounded</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>1</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="perfEditorTab">
|
<widget class="QWidget" name="perfEditorTab">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
@ -224,31 +227,6 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="tab">
|
|
||||||
<attribute name="title">
|
|
||||||
<string>Page</string>
|
|
||||||
</attribute>
|
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
|
||||||
<item>
|
|
||||||
<widget class="QScrollArea" name="scrollArea">
|
|
||||||
<property name="widgetResizable">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<widget class="QWidget" name="scrollAreaWidgetContents">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>0</x>
|
|
||||||
<y>0</y>
|
|
||||||
<width>471</width>
|
|
||||||
<height>560</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout_2"/>
|
|
||||||
</widget>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
@ -11,7 +11,9 @@ newProfile::newProfile(QWidget *parent) :
|
|||||||
|
|
||||||
connect(ui->profileList, SIGNAL(itemDoubleClicked(QListWidgetItem*)), SLOT(editEntryName(QListWidgetItem*)));
|
connect(ui->profileList, SIGNAL(itemDoubleClicked(QListWidgetItem*)), SLOT(editEntryName(QListWidgetItem*)));
|
||||||
|
|
||||||
|
SignalItemDelegate *delegate = new SignalItemDelegate(ui->profileList);
|
||||||
|
deleg = delegate;
|
||||||
|
connect(deleg, SIGNAL(editStarted), SLOT(testi()));
|
||||||
}
|
}
|
||||||
|
|
||||||
newProfile::~newProfile()
|
newProfile::~newProfile()
|
||||||
@ -23,7 +25,10 @@ void newProfile::on_profileNameEdit_textChanged(const QString &arg1)
|
|||||||
{
|
{
|
||||||
newProfileName = arg1;
|
newProfileName = arg1;
|
||||||
}
|
}
|
||||||
|
void newProfile::testi()
|
||||||
|
{
|
||||||
|
qDebug() << "edit started";
|
||||||
|
}
|
||||||
void newProfile::on_saveButton_clicked()
|
void newProfile::on_saveButton_clicked()
|
||||||
{
|
{
|
||||||
QSettings settings("nvfancurve");
|
QSettings settings("nvfancurve");
|
||||||
@ -73,12 +78,12 @@ void newProfile::on_cancelButton_clicked()
|
|||||||
}
|
}
|
||||||
void newProfile::on_addButton_pressed()
|
void newProfile::on_addButton_pressed()
|
||||||
{
|
{
|
||||||
SignalItemDelegate *delegate = new SignalItemDelegate(ui->profileList);
|
/*SignalItemDelegate *delegate = new SignalItemDelegate(ui->profileList);
|
||||||
connect(delegate, &SignalItemDelegate::editStarted,[](){qDebug("edit started");});
|
connect(delegate, &SignalItemDelegate::editStarted,[](){qDebug("edit started");});
|
||||||
connect(delegate, &SignalItemDelegate::editFinished,[](){qDebug("edit finished");});
|
connect(delegate, &SignalItemDelegate::editFinished,[](){qDebug("edit finished");});
|
||||||
ui->profileList->setItemDelegate(delegate);
|
ui->profileList->setItemDelegate(delegate);
|
||||||
ui->profileList->addItem("");
|
ui->profileList->addItem("");
|
||||||
int itemCount = ui->profileList->count()-1;
|
int itemCount = ui->profileList->count()-1;
|
||||||
ui->profileList->item(itemCount)->setFlags(Qt::ItemIsEditable | Qt::ItemIsEnabled);
|
ui->profileList->item(itemCount)->setFlags(Qt::ItemIsEditable | Qt::ItemIsEnabled);
|
||||||
ui->profileList->editItem(ui->profileList->item(itemCount));
|
ui->profileList->editItem(ui->profileList->item(itemCount)); */
|
||||||
}
|
}
|
||||||
|
@ -32,9 +32,12 @@ private slots:
|
|||||||
void on_addButton_pressed();
|
void on_addButton_pressed();
|
||||||
|
|
||||||
void rightClick(QMouseEvent *event);
|
void rightClick(QMouseEvent *event);
|
||||||
|
void testi();
|
||||||
private:
|
private:
|
||||||
Ui::newProfile *ui;
|
Ui::newProfile *ui;
|
||||||
QString newProfileName;
|
QString newProfileName;
|
||||||
|
|
||||||
|
QStyledItemDelegate *deleg = new QStyledItemDelegate(this);
|
||||||
};
|
};
|
||||||
// New class for editing so we can detect when the editing has finished
|
// New class for editing so we can detect when the editing has finished
|
||||||
class SignalItemDelegate : public QStyledItemDelegate
|
class SignalItemDelegate : public QStyledItemDelegate
|
||||||
|
Loading…
Reference in New Issue
Block a user